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() {
|
willDestroyElement() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
$(".selected-name").off("touchend.select-kit pointerup.select-kit");
|
this.$(".selected-name").off("touchend.select-kit pointerup.select-kit");
|
||||||
},
|
},
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
$(".selected-name").on(
|
this.$(".selected-name").on(
|
||||||
"touchend.select-kit pointerup.select-kit",
|
"touchend.select-kit pointerup.select-kit",
|
||||||
event => {
|
event => {
|
||||||
if (!this.get("isExpanded")) {
|
|
||||||
this.expand(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.focusFilterOrHeader();
|
this.focusFilterOrHeader();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue