Skip to content

Commit 876ab95

Browse files
committed
fix(Autocomplete): prevent auto-focusing input when the value is set
1 parent 3924270 commit 876ab95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ class Autocomplete extends BaseComponent {
751751

752752
if (foundOption) {
753753
this._selectOption(foundOption)
754+
this._inputElement.focus()
754755
}
755756
}
756757

@@ -800,7 +801,6 @@ class Autocomplete extends BaseComponent {
800801
this.search('')
801802
}
802803

803-
this._inputElement.focus()
804804
this._updateCleaner()
805805
}
806806

0 commit comments

Comments
 (0)