Skip to content

Commit

Permalink
feat: change toolbar onBlur to false
Browse files Browse the repository at this point in the history
  • Loading branch information
okorie2 committed Sep 22, 2023
1 parent 80ce493 commit 3327897
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/modules/chart-module/routes/text/RichEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const RichEditor = (props: {
},
});
const linkPlugin = createLinkPlugin();

const undoPlugin = createUndoPlugin({
undoContent: <UndoIcon />,
redoContent: <RedoIcon />,
Expand Down Expand Up @@ -143,8 +144,8 @@ export const RichEditor = (props: {
editorState={props.textContent}
onChange={props.setTextContent}
onBlur={() => {
setLocalFocus(true);
props.setIsFocused?.(true);
setLocalFocus(false);
props.setIsFocused?.(false);
}}
onFocus={() => {
setLocalFocus(true);
Expand Down

0 comments on commit 3327897

Please sign in to comment.