pubpub / pubpub-editor

A stand alone, extensible WSIWYG editor based on ProseMirror
GNU General Public License v2.0
101 stars 9 forks source link

Text selection popup doesn't always go away when the text is unselected #30

Open joeltg opened 4 years ago

joeltg commented 4 years ago

When viewing a pub, the text selection popup (with "commend" and "copy permalink" buttons) doesn't always disappear when the selection changes. This is only in Chrome and Safari, not Firefox.

When selecting text

Screen Shot 2019-10-29 at 2 50 27 PM

If you click on e.g. another line far away, the text is unselected and the popup disappears. But if you click exactly on either the focus or anchor of the selection (which is common since the mouse is always over the focus right after making the selection), then the text is unselected but the popup doesn't disappear.

Screen Shot 2019-10-29 at 2 50 34 PM

The popup does goes away with an additional click.