From ba2f01c0bd7253dd8f1970c01e0876634803fe61 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 27 Feb 2018 18:31:51 +0100 Subject: [PATCH] FIX: prevents selected value from hiding one item of the list --- .../javascripts/select-kit/components/mini-tag-chooser.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) 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.es6 index 884531af06a..b6f445a4f73 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 @@ -87,6 +87,10 @@ export default ComboBox.extend(Tags, { this.didPressBackspace(event); }, + // we are relying on selectedTags and not on value + // to define the current selection + mutateValue() {}, + didPressBackspace() { if (!this.get("isExpanded")) { this.expand();