FIX: prevents mini-tag-chooser to catch unwanted focus
This commit is contained in:
parent
a327393651
commit
2c90a2e5c2
|
@ -48,19 +48,15 @@ export default ComboBox.extend(Tags, {
|
|||
willDestroyElement() {
|
||||
this._super(...arguments);
|
||||
|
||||
$(".selected-name").off("touchend.select-kit pointerup.select-kit");
|
||||
this.$(".selected-name").off("touchend.select-kit pointerup.select-kit");
|
||||
},
|
||||
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
|
||||
$(".selected-name").on(
|
||||
this.$(".selected-name").on(
|
||||
"touchend.select-kit pointerup.select-kit",
|
||||
event => {
|
||||
if (!this.get("isExpanded")) {
|
||||
this.expand(event);
|
||||
}
|
||||
|
||||
this.focusFilterOrHeader();
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue