Skip to content

Commit

Permalink
fix: on mount disabled textarea focus only for TOTEM layout
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepat0 committed Nov 15, 2024
1 parent b5ff368 commit a8b0ab4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/MemoriWidget/MemoriWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2126,7 +2126,10 @@ const MemoriWidget = ({
* Focus on the chat input on mount
*/
useEffect(() => {
focusChatInput();
// focus on chat input disabled for totem layout
if (selectedLayout !== 'TOTEM') {
focusChatInput();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentDialogState?.emission]);

Expand Down
2 changes: 1 addition & 1 deletion src/components/layouts/totem.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.memori-widget.memori-layout-totem {
height: 100vh !important;
height: 95vh !important;
}

.memori-widget.memori-layout-totem .memori--global-background.no-background-image {
Expand Down

0 comments on commit a8b0ab4

Please sign in to comment.