Skip to content

Commit

Permalink
[fix] 채팅 오류 수정 (#220)
Browse files Browse the repository at this point in the history
fix : 채팅 오류 수정
  • Loading branch information
Novrule authored Dec 14, 2023
1 parent a0aaf82 commit b40fefd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/pages/BroadcastPage/BroadcastPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ const BroadcastPage = () => {
}

const onEnter = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (event.nativeEvent.isComposing || settingModal === true || loginModal === true || viewerModal === true || confirmModal === true) {
setChatting('')

if (event.nativeEvent.isComposing) {
return
} else if (settingModal === true || loginModal === true || viewerModal === true || confirmModal === true) {
setChatting('')
} else if (event.key === 'Enter' && event.shiftKey === false) {
event.preventDefault()
onSend()
Expand Down

0 comments on commit b40fefd

Please sign in to comment.