Skip to content

Commit

Permalink
Merge pull request #3630 from udecode/fix/insert-link
Browse files Browse the repository at this point in the history
Insert link issue
  • Loading branch information
zbeyens authored Oct 14, 2024
2 parents 1896bbb + 31b6c9f commit 78fa27d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-boats-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@udecode/plate-link": patch
---

Fixed the problem that the LinkFloatingToolbar disappears when clicking anywhere when inserting a link
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ export const useFloatingLinkEdit = ({
useFloatingLinkEscape();

const clickOutsideRef = useOnClickOutside(() => {
if (!getOptions().isEditing) return;

api.floatingLink.hide();
});

Expand Down

0 comments on commit 78fa27d

Please sign in to comment.