Detaysoft / react-chat-elements

Reactjs chat elements chat UI, react chat components
MIT License
1.23k stars 218 forks source link

Clear is not working afer i send a message #228

Open lvlpmserv opened 2 hours ago

lvlpmserv commented 2 hours ago

<Input placeholder="Type here..." multiline={true} onChange={(e) => handleInput(e.target.value)} value={messageContent} // onSubmit={() => handleMessageSubmit()} // onReset={() => handleMessageSubmit()} clear={(clear) => (inputClear ? clear() : "")} rightButtons={ <Button variant="contained" color="success" onClick={() => handleMessageSubmit()}

Send } />

lvlpmserv commented 2 hours ago

i am trying to find an example of input clear after message is send because it doesn't clear automatically