selection-sharer icon indicating copy to clipboard operation
selection-sharer copied to clipboard

Sharer not closing when losing focus

Open reneroth opened this issue 10 years ago • 1 comments

The sharer only closes if you click on a targeted element, not if the selection loses focus by clicking on an element that is not targeted by selection-sharer.

As a fix, I use:

if(!window.getSelection().length) {
    self.hide();
    return;
}

in this.selectionChanged, line 311, before checking self.isMobile.

reneroth avatar Oct 01 '15 21:10 reneroth

This fix doesn't seem to work anymore. Is there any onther way to fix it?

Ecnelis avatar May 16 '17 07:05 Ecnelis