Open lvlpmserv opened 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 } />
i am trying to find an example of input clear after message is send because it doesn't clear automatically
<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()}