@acorex/components 20.7.1 → 20.7.3
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.
|
@@ -256,26 +256,16 @@ class AXSelectBoxComponent extends classes(MXDropdownBoxBaseComponent, MXSelecti
|
|
|
256
256
|
/** @ignore */
|
|
257
257
|
_handleItemSelected(e) {
|
|
258
258
|
this.onItemSelected.emit(e);
|
|
259
|
-
this.
|
|
259
|
+
this.resetSearchAfterSelection();
|
|
260
260
|
if (!this.multiple) {
|
|
261
261
|
this.close();
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
|
|
265
|
-
if (!this.searchBox && !this.
|
|
264
|
+
resetSearchAfterSelection() {
|
|
265
|
+
if (!this.searchBox && !this.searchBox.value)
|
|
266
266
|
return;
|
|
267
|
-
|
|
268
|
-
if (this.searchBox && this.searchBox.value) {
|
|
267
|
+
if (this.searchBox && this.searchBox.value)
|
|
269
268
|
this.searchBox.commitValue('', false);
|
|
270
|
-
}
|
|
271
|
-
// Clear filter + internal state
|
|
272
|
-
if (this.searchValue()) {
|
|
273
|
-
this.search('');
|
|
274
|
-
}
|
|
275
|
-
// For multi-select, keep keyboard flow on the search box
|
|
276
|
-
if (this.multiple && this.searchBoxAutoFocus() && this.searchBox) {
|
|
277
|
-
setTimeout(() => this.searchBox?.focus());
|
|
278
|
-
}
|
|
279
269
|
}
|
|
280
270
|
/** @ignore */
|
|
281
271
|
setDropdownSize(count = 0) {
|