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

This commit is contained in:
Joffrey JAFFEUX 2020-04-03 16:27:56 +02:00 committed by GitHub
parent 76bb01c31c
commit 883901e4c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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