mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-06 07:52:27 -05:00
Focus on editor upon page loading
This commit is contained in:
@@ -145,6 +145,12 @@ export const PrivateChat = (props: {
|
||||
placeholder: 'Send a message',
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
if (editor) {
|
||||
editor.commands.focus()
|
||||
}
|
||||
}, [editor])
|
||||
|
||||
useEffect(() => {
|
||||
setAsSeen(channelId)
|
||||
}, [JSON.stringify(messages)])
|
||||
|
||||
Reference in New Issue
Block a user