@vgip/meta-ui 1.5.1 → 1.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.
|
@@ -3288,11 +3288,13 @@ class FieldSelect extends FieldAbstract {
|
|
|
3288
3288
|
}
|
|
3289
3289
|
else {
|
|
3290
3290
|
this.dismissDropdown();
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3291
|
+
if (typeof option !== 'undefined') {
|
|
3292
|
+
this.model = option;
|
|
3293
|
+
this.onModelChange(option);
|
|
3294
|
+
this.showText = option.label || (option.id === '' ? '--empty--' : option);
|
|
3295
|
+
if (typeof (option) === 'object' && !option.id && option.id !== '') {
|
|
3296
|
+
delete this.showText;
|
|
3297
|
+
}
|
|
3296
3298
|
}
|
|
3297
3299
|
}
|
|
3298
3300
|
}
|
|
@@ -3353,6 +3355,9 @@ class FieldSelect extends FieldAbstract {
|
|
|
3353
3355
|
if (this.dropdown) {
|
|
3354
3356
|
this.dropdown.classList.remove('Vlt-dropdown--expanded');
|
|
3355
3357
|
}
|
|
3358
|
+
if (this.searchInput) {
|
|
3359
|
+
this.clearSearchField();
|
|
3360
|
+
}
|
|
3356
3361
|
delete this.activeSuggestionIndex;
|
|
3357
3362
|
}
|
|
3358
3363
|
onSearchChange() {
|