Skip to content

SendButton in multimodal-input Sends Only the First Character #636

@bolshiyanov

Description

@bolshiyanov

Description

There is an issue with the SendButton in the multimodal-input component. When a message is written in the textArea and ready to be sent, there are two options to trigger the request:

  1. Pressing the Enter key;
  2. Clicking the SendButton.
  • Expected behavior: The full text from the textArea should be sent to the server in both cases.
  • Actual behavior:
    • When pressing Enter: The complete text is successfully sent.
    • When clicking the SendButton: Only the first character of the textArea content is sent to the server.

Steps to Reproduce

  1. Open the component with the multimodal-input.
  2. Type a message (e.g., "Hello, world!") in the textArea.
  3. Click the SendButton.
  4. Observe that only the first character ("H") is sent to the server.

Environment

  • Library: OpenAI API integration
  • Component: multimodal-input
  • Issue Source: SendButton

Additional Context

  • No errors appear in the console during this interaction.
  • Pressing Enter behaves as expected, suggesting that the issue might be related to the event handling or state update when the SendButton is clicked.
    Screenshot 2024-12-18 180752
    Screenshot 2024-12-18 180836

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions