A platform for community discussion. Free, open, simple.
FIX: prevents mini-tag-chooser to catch unwanted focus
Joffrey JAFFEUX2c90a2e5c25a
diff --git a/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6 b/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6index 3e8edebc1da..882447346d8 100644--- a/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6+++ b/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6@@ -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();});