Skip to content

Commit c7bde94

Browse files
authored
fix(react): close link popover on submit in static formatting toolbar #1696 (#1997)
1 parent c3422c2 commit c7bde94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react/src/components/FormattingToolbar/DefaultButtons/CreateLinkButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const CreateLinkButton = () => {
7676
const update = useCallback(
7777
(url: string) => {
7878
editor.createLink(url);
79+
setOpened(false);
7980
editor.focus();
8081
},
8182
[editor],

0 commit comments

Comments
 (0)