Browse Source

Merge pull request #103 from jmlee2k/fix-jumping-on-destroy

Fix picker jumping before being destroyed
master
Joe Attardi 4 years ago
committed by GitHub
parent
commit
06a4d6a0bf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/index.ts

2
src/index.ts

@ -391,7 +391,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);
@ -431,6 +430,7 @@ export class EmojiButton {
}
this.hideInProgress = false;
this.popper && this.popper.destroy();
this.publicEvents.emit(PICKER_HIDDEN);
},

Loading…
Cancel
Save