@vaadin/multi-select-combo-box 24.3.18 → 24.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/multi-select-combo-box",
3
- "version": "24.3.18",
3
+ "version": "24.3.20",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,17 +38,17 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "~24.3.18",
42
- "@vaadin/combo-box": "~24.3.18",
43
- "@vaadin/component-base": "~24.3.18",
44
- "@vaadin/field-base": "~24.3.18",
45
- "@vaadin/input-container": "~24.3.18",
46
- "@vaadin/item": "~24.3.18",
47
- "@vaadin/lit-renderer": "~24.3.18",
48
- "@vaadin/overlay": "~24.3.18",
49
- "@vaadin/vaadin-lumo-styles": "~24.3.18",
50
- "@vaadin/vaadin-material-styles": "~24.3.18",
51
- "@vaadin/vaadin-themable-mixin": "~24.3.18"
41
+ "@vaadin/a11y-base": "~24.3.20",
42
+ "@vaadin/combo-box": "~24.3.20",
43
+ "@vaadin/component-base": "~24.3.20",
44
+ "@vaadin/field-base": "~24.3.20",
45
+ "@vaadin/input-container": "~24.3.20",
46
+ "@vaadin/item": "~24.3.20",
47
+ "@vaadin/lit-renderer": "~24.3.20",
48
+ "@vaadin/overlay": "~24.3.20",
49
+ "@vaadin/vaadin-lumo-styles": "~24.3.20",
50
+ "@vaadin/vaadin-material-styles": "~24.3.20",
51
+ "@vaadin/vaadin-themable-mixin": "~24.3.20"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@esm-bundle/chai": "^4.3.4",
@@ -60,5 +60,5 @@
60
60
  "web-types.json",
61
61
  "web-types.lit.json"
62
62
  ],
63
- "gitHead": "48c098f213c652b55cf43552226f1aa3fe521189"
63
+ "gitHead": "3b21cd1e7318085fc256af1ce8d2a00e2d7f596e"
64
64
  }
@@ -358,6 +358,10 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
358
358
  }
359
359
 
360
360
  if (this.opened) {
361
+ // Store filter value for checking if user input is matching
362
+ // an item which is already selected, to not un-select it.
363
+ this.lastFilter = this.filter;
364
+
361
365
  this.dispatchEvent(
362
366
  new CustomEvent('combo-box-item-selected', {
363
367
  detail: {
@@ -439,7 +439,6 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
439
439
  */
440
440
  placeholder: {
441
441
  type: String,
442
- value: '',
443
442
  observer: '_placeholderChanged',
444
443
  },
445
444
 
@@ -794,9 +793,12 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
794
793
  // Use placeholder for announcing items
795
794
  if (this._hasValue) {
796
795
  const tmpPlaceholder = this._mergeItemLabels(selectedItems);
796
+ if (this.__tmpA11yPlaceholder === undefined) {
797
+ this.__savedPlaceholder = this.placeholder;
798
+ }
797
799
  this.__tmpA11yPlaceholder = tmpPlaceholder;
798
800
  this.placeholder = tmpPlaceholder;
799
- } else {
801
+ } else if (this.__tmpA11yPlaceholder !== undefined) {
800
802
  delete this.__tmpA11yPlaceholder;
801
803
  this.placeholder = this.__savedPlaceholder;
802
804
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "24.3.18",
4
+ "version": "24.3.20",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "24.3.18",
4
+ "version": "24.3.20",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {