From 40b9a25a1eb7583fa2226bd96be7588d604ef92b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=B3tay-Szab=C3=B3=20K=C3=A1roly?= Date: Sun, 11 Dec 2022 16:44:03 +0100 Subject: [PATCH] #123 and #124 bugfix --- package.json | 2 +- src/multiselect-combo-box.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1b74793..8e1edf6 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "url": "https://github.com/gatanaso/multiselect-combo-box" }, "name": "multiselect-combo-box", - "version": "2.4.2", + "version": "2.4.3", "main": "multiselect-combo-box.js", "directories": { "test": "test" diff --git a/src/multiselect-combo-box.js b/src/multiselect-combo-box.js index 6740fa9..91988fc 100644 --- a/src/multiselect-combo-box.js +++ b/src/multiselect-combo-box.js @@ -340,10 +340,10 @@ import './multiselect-combo-box-input.js'; if (!selectedItem) { this.$.comboBox.value = null; + } else { + this.selectedItems = update; } - this.selectedItems = update; - if (this.validate()) { this._dispatchChangeEvent(); }