mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
FIX: A paste event listener was re-added instead of being removed
cc: @eviltrout 😉
This commit is contained in:
@ -43,7 +43,7 @@ export default TextField.extend({
|
|||||||
@on("willDestroyElement")
|
@on("willDestroyElement")
|
||||||
_destroyAutocompleteInstance() {
|
_destroyAutocompleteInstance() {
|
||||||
$(this.element).autocomplete("destroy");
|
$(this.element).autocomplete("destroy");
|
||||||
this.element.addEventListener("paste", this._paste);
|
this.element.removeEventListener("paste", this._paste);
|
||||||
},
|
},
|
||||||
|
|
||||||
@on("didInsertElement")
|
@on("didInsertElement")
|
||||||
|
Reference in New Issue
Block a user