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
This is the sample for this case when I want to limit the length input, but when I copy the long text and paste it to this field continuously, the long text will be shown in input message although the state is not updated <MessageInput placeholder="Type message here" onSend={handleSendMessage} attachButton={false} autoFocus sendDisabled={typing} sendOnReturnDisabled={typing} value={input} onChange={(val) => { if (val.length > 4) { setInput(val.substring(0, 4)); } else setInput(val); }} />
The text was updated successfully, but these errors were encountered:
This is the sample for this case when I want to limit the length input, but when I copy the long text and paste it to this field continuously, the long text will be shown in input message although the state is not updated
<MessageInput placeholder="Type message here" onSend={handleSendMessage} attachButton={false} autoFocus sendDisabled={typing} sendOnReturnDisabled={typing} value={input} onChange={(val) => { if (val.length > 4) { setInput(val.substring(0, 4)); } else setInput(val); }} />
The text was updated successfully, but these errors were encountered: