FIX: prevents mini-tag-chooser to catch unwanted focus

This commit is contained in:
Joffrey JAFFEUX 2018-07-30 13:03:40 -04:00 committed by GitHub
parent a327393651
commit 2c90a2e5c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -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();
}
);