Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiyush-303 committed Jan 5, 2025
1 parent ed99179 commit 136ad96
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions packages/react/src/views/ChatInput/ChatInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,25 +435,25 @@ const ChatInput = ({ scrollToBottom }) => {
sendMessage();
}
break;
case e.altKey && e.code === 'ArrowUp': {
e.preventDefault();
e.stopPropagation();
if (messageRef && messageRef.current) {
messageRef.current.setSelectionRange(0, 0);
messageRef.current.focus();
}
break;
case e.altKey && e.code === 'ArrowUp': {
e.preventDefault();
e.stopPropagation();
if (messageRef && messageRef.current) {
messageRef.current.setSelectionRange(0, 0);
messageRef.current.focus();
}
case e.altKey && e.code === 'ArrowDown': {
e.preventDefault();
e.stopPropagation();
if (messageRef && messageRef.current) {
const endlength = messageRef.current.value.length;
messageRef.current.setSelectionRange(endlength, endlength);
messageRef.current.focus();
}
break;
break;
}
case e.altKey && e.code === 'ArrowDown': {
e.preventDefault();
e.stopPropagation();
if (messageRef && messageRef.current) {
const endlength = messageRef.current.value.length;
messageRef.current.setSelectionRange(endlength, endlength);
messageRef.current.focus();
}
break;
}
default:
break;
}
Expand Down

0 comments on commit 136ad96

Please sign in to comment.