@vaadin/vaadin-combo-box 5.5.0 → 5.5.2

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
@@ -10,7 +10,7 @@
10
10
  "repository": "vaadin/vaadin-combo-box",
11
11
  "homepage": "https://vaadin.com/components",
12
12
  "name": "@vaadin/vaadin-combo-box",
13
- "version": "5.5.0",
13
+ "version": "5.5.2",
14
14
  "main": "vaadin-combo-box.js",
15
15
  "author": "Vaadin Ltd",
16
16
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@polymer/polymer": "^3.0.0",
39
39
  "@vaadin/vaadin-control-state-mixin": "^2.2.2",
40
40
  "@vaadin/vaadin-overlay": "^3.5.0",
41
- "@vaadin/vaadin-text-field": "^2.8.0",
41
+ "@vaadin/vaadin-text-field": "^2.10.0",
42
42
  "@vaadin/vaadin-themable-mixin": "^1.6.1",
43
43
  "@vaadin/vaadin-lumo-styles": "^1.1.1",
44
44
  "@vaadin/vaadin-material-styles": "^1.1.2",
@@ -183,6 +183,7 @@ class ComboBoxLightElement extends
183
183
  set _inputElementValue(value) {
184
184
  if (this.inputElement) {
185
185
  this.inputElement[this._propertyForValue] = value;
186
+ this._inputElementValueChanged(value);
186
187
  }
187
188
  }
188
189
  }
@@ -770,7 +770,9 @@ export const ComboBoxMixin = subclass => class VaadinComboBoxMixinElement extend
770
770
  _inputValueChanged(e) {
771
771
  // Handle only input events from our inputElement.
772
772
  if (e.composedPath().indexOf(this.inputElement) !== -1) {
773
- this._inputElementValue = this.inputElement[this._propertyForValue];
773
+ if (!e.__fromClearButton) {
774
+ this._inputElementValue = this.inputElement[this._propertyForValue];
775
+ }
774
776
  this._filterFromInput(e);
775
777
  }
776
778
  }
@@ -203,7 +203,7 @@ class ComboBoxElement extends
203
203
  }
204
204
  </style>
205
205
 
206
- <vaadin-text-field part="text-field" id="input" pattern="[[pattern]]" prevent-invalid-input="[[preventInvalidInput]]" value="{{_inputElementValue}}" autocomplete="off" invalid="[[invalid]]" label="[[label]]" name="[[name]]" placeholder="[[placeholder]]" required="[[required]]" disabled="[[disabled]]" readonly="[[readonly]]" helper-text="[[helperText]]" error-message="[[errorMessage]]" autocapitalize="none" autofocus="[[autofocus]]" on-change="_stopPropagation" on-input="_inputValueChanged" clear-button-visible="[[clearButtonVisible]]" theme\$="[[theme]]">
206
+ <vaadin-text-field part="text-field" id="input" pattern="[[pattern]]" prevent-invalid-input="[[preventInvalidInput]]" value="[[_inputElementValue]]" autocomplete="off" invalid="[[invalid]]" label="[[label]]" name="[[name]]" placeholder="[[placeholder]]" required="[[required]]" disabled="[[disabled]]" readonly="[[readonly]]" helper-text="[[helperText]]" error-message="[[errorMessage]]" autocapitalize="none" autofocus="[[autofocus]]" on-change="_stopPropagation" on-input="_inputValueChanged" clear-button-visible="[[clearButtonVisible]]" theme\$="[[theme]]">
207
207
  <slot name="prefix" slot="prefix"></slot>
208
208
  <slot name="helper" slot="helper">[[helperText]]</slot>
209
209
 
@@ -229,7 +229,7 @@ class ComboBoxElement extends
229
229
  }
230
230
 
231
231
  static get version() {
232
- return '5.5.0';
232
+ return '5.5.2';
233
233
  }
234
234
 
235
235
  static get properties() {