Skip to content

Commit 70644ff

Browse files
committed
Prevent editor focus on mobile devices
1 parent bbefcc3 commit 70644ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/pages/messages/[channelId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const PrivateChat = (props: {
146146
})
147147

148148
useEffect(() => {
149-
if (editor) {
149+
if (editor && !isMobile) {
150150
editor.commands.focus()
151151
}
152152
}, [editor])

0 commit comments

Comments
 (0)