You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation
I would like to request the addition of a custom prop that allows trimming whitespace from messages before they are sent. This feature will improve user experience by preventing messages from being sent accidentally with leading or trailing whitespace.
Proposed solution
To address this, I propose adding a custom prop to the message input component that enables the trimming of whitespace. When this prop is enabled, any leading or trailing whitespace in the message input should be automatically removed before the message is sent.
1. Introduce a new boolean prop, e.g., trimWhitespace, to the message input component.
2. When trimWhitespace is set to true, the message input should automatically trim any leading and trailing whitespace from the message before sending.
3. Ensure that this functionality is optional and backward compatible, with the default behavior being false (no trimming).
<MessageInputtrimWhitespace={true}/>
Acceptance Criteria
A set of predefined requirements that must be met to mark a user story complete.
The text was updated successfully, but these errors were encountered:
arekkubaczkowski
changed the title
Add a prop that will trim text input value whitespaces
Add a prop that will trim whitespaces from text input value
Jul 30, 2024
Motivation
I would like to request the addition of a custom prop that allows trimming whitespace from messages before they are sent. This feature will improve user experience by preventing messages from being sent accidentally with leading or trailing whitespace.
Proposed solution
To address this, I propose adding a custom prop to the message input component that enables the trimming of whitespace. When this prop is enabled, any leading or trailing whitespace in the message input should be automatically removed before the message is sent.
Acceptance Criteria
A set of predefined requirements that must be met to mark a user story complete.
The text was updated successfully, but these errors were encountered: