Skip to content

Commit

Permalink
accept up and down arrows in messageinput - fix #197
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Nov 10, 2024
1 parent 45ceebd commit c6b2d12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/components/MessageInputCustom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,12 @@ const CustomInput = (props) => {
multiline
className={classes.messageInput}
maxRows={5}
onKeyDownCapture={(e) => {
if (e.key === 'ArrowUp' ||
e.key === 'ArrowDown'
)
e.stopPropagation();
}}
/>
);
}}
Expand Down

0 comments on commit c6b2d12

Please sign in to comment.