Skip to content

A platform for community discussion. Free, open, simple.

FIX: do not attempt to deselect tags if filter is not empty (#9345)

Joffrey JAFFEUX883901e4c0bc
diff --git a/app/assets/javascripts/select-kit/components/mini-tag-chooser.js b/app/assets/javascripts/select-kit/components/mini-tag-chooser.js
index d8c63c9ae5d..bf11e816dc9 100644
--- a/app/assets/javascripts/select-kit/components/mini-tag-chooser.js
+++ b/app/assets/javascripts/select-kit/components/mini-tag-chooser.js
@@ -188,7 +188,9 @@ export default ComboBox.extend(TagsMixin, {
const value = makeArray(this.value);
if (event.keyCode === 8) {
- this._onBackspace(this.value, this.highlightedTag);
+ if (!this.selectKit.filter) {
+ this._onBackspace(this.value, this.highlightedTag);
+ }
} else if (event.keyCode === 37) {
if (this.highlightedTag) {
const index = value.indexOf(this.highlightedTag);