@alauda/ui 6.5.4-beta.43 → 6.5.4-beta.44
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
|
@@ -1890,7 +1890,7 @@ class AutoCompleteDirective extends BaseTooltip {
|
|
|
1890
1890
|
this.unsubscribe$.complete();
|
|
1891
1891
|
}
|
|
1892
1892
|
onFocus() {
|
|
1893
|
-
if (this.suggestionTrigger === 'auto') {
|
|
1893
|
+
if (this.suggestionTrigger === 'auto' && !this.isCreated) {
|
|
1894
1894
|
super.onFocus();
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
@@ -1952,10 +1952,6 @@ class AutoCompleteDirective extends BaseTooltip {
|
|
|
1952
1952
|
this.autoFocusFirstSuggestion();
|
|
1953
1953
|
}
|
|
1954
1954
|
autoFocusFirstSuggestion() {
|
|
1955
|
-
const focusedSuggestion = this.autocomplete.suggestions.find(suggestion => suggestion.focused && suggestion.visible);
|
|
1956
|
-
if (focusedSuggestion) {
|
|
1957
|
-
return;
|
|
1958
|
-
}
|
|
1959
1955
|
const selectedSuggestion = this.autocomplete.suggestions.find(suggestion => suggestion.selected);
|
|
1960
1956
|
if (selectedSuggestion) {
|
|
1961
1957
|
this.resetFocusedSuggestion(selectedSuggestion);
|