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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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); |
|
|
|
}, |
|
|
|