mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 06:42:44 +08:00
DEV: Handle emoji-picker and d-editor being destroyed simultaneously (#17109)
This commit is contained in:
parent
c00205730e
commit
691afa2593
|
@ -672,6 +672,13 @@ export default Component.extend(TextareaTextManipulation, {
|
|||
return true;
|
||||
},
|
||||
|
||||
@action
|
||||
onEmojiPickerClose() {
|
||||
if (!(this.isDestroyed || this.isDestroying)) {
|
||||
this.set("emojiPickerIsActive", false);
|
||||
}
|
||||
},
|
||||
|
||||
actions: {
|
||||
emoji() {
|
||||
if (this.disabled) {
|
||||
|
|
|
@ -74,5 +74,5 @@
|
|||
isEditorFocused=isEditorFocused
|
||||
initialFilter=this.emojiFilter
|
||||
emojiSelected=(action "emojiSelected")
|
||||
onEmojiPickerClose=(action (mut emojiPickerIsActive) false)
|
||||
onEmojiPickerClose=onEmojiPickerClose
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user