Skip to content

Commit

Permalink
fix(LinkBubble): Hide bubble after 100ms delay
Browse files Browse the repository at this point in the history
Should allow Cypress to click on it before blur event happens.

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Jan 29, 2024
1 parent f8fba27 commit dd31a6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extensions/LinkBubblePluginView.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ class LinkBubblePluginView {

hide() {
this.view.dom.removeEventListener('keydown', this.keydownHandler)
this.tippy?.hide()
setTimeout(() => {
this.tippy?.hide()
}, 100)
}

destroy() {
Expand Down

0 comments on commit dd31a6e

Please sign in to comment.