Skip to content

Commit

Permalink
fix(ui-markdown-editor): close hyperlink modal when not interacting i47
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Wei Hao <whyang0808@gmail.com>
  • Loading branch information
whyang0808 authored and DianaLease committed Oct 2, 2020
1 parent 6e31459 commit 5b3f055
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ui-markdown-editor/src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export const MarkdownEditor = (props) => {
hotkeyActions[type](code);
}
});

setShowLinkModal(false);
}, [canBeFormatted, canKeyDown, editor, hotkeyActions]);

const onBeforeInput = useCallback((event) => {
Expand Down

0 comments on commit 5b3f055

Please sign in to comment.