Browse Source

Fix picker jumping before being destroyed

- this occured when using a rootElement
master
jmlee2k 4 years ago
parent
commit
01ea6c4964
  1. 2
      src/index.ts

2
src/index.ts

@ -388,7 +388,6 @@ export class EmojiButton {
this.hideInProgress = true;
this.focusTrap.deactivate();
this.pickerVisible = false;
this.popper && this.popper.destroy();
if (this.overlay) {
document.body.removeChild(this.overlay);
@ -428,6 +427,7 @@ export class EmojiButton {
}
this.hideInProgress = false;
this.popper && this.popper.destroy();
this.publicEvents.emit(PICKER_HIDDEN);
},

Loading…
Cancel
Save