@alauda/ui 6.4.6-beta.12 → 6.4.6-beta.15
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/fesm2020/alauda-ui.mjs
CHANGED
|
@@ -7590,7 +7590,7 @@ class BaseSelect extends CommonFormControl {
|
|
|
7590
7590
|
this.openOption();
|
|
7591
7591
|
return;
|
|
7592
7592
|
}
|
|
7593
|
-
if (this.focusedOption) {
|
|
7593
|
+
if (this.focusedOption && !this.focusedOption.disabled) {
|
|
7594
7594
|
this.selectOption(this.focusedOption);
|
|
7595
7595
|
}
|
|
7596
7596
|
}
|
|
@@ -8019,7 +8019,8 @@ class MultiSelectComponent extends BaseSelect {
|
|
|
8019
8019
|
if (event.key === 'Backspace' &&
|
|
8020
8020
|
this.filterString === '' &&
|
|
8021
8021
|
this.model.length > 0 &&
|
|
8022
|
-
!this.hasDisabledOption
|
|
8022
|
+
!this.hasDisabledOption // Disabled backspace when any of select options have disabled state.
|
|
8023
|
+
) {
|
|
8023
8024
|
this.removeValue(this.model[this.model.length - 1]);
|
|
8024
8025
|
event.stopPropagation();
|
|
8025
8026
|
event.preventDefault();
|