Skip to content

Commit

Permalink
CW-clear-after-send
Browse files Browse the repository at this point in the history
Added immediate clear input after sending message
  • Loading branch information
MeyerPV committed Oct 1, 2024
1 parent fd4dbf7 commit 81087f6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export default function ChatComponent({
const [shouldReinitializeEditor, setShouldReinitializeEditor] =
useState(false);
const onClear = () => {
textInputRef?.current?.clear?.();
setShouldReinitializeEditor(true);
setMessage(parseStringToTextEditorValue());
};
Expand Down

0 comments on commit 81087f6

Please sign in to comment.