Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 998199f

Browse files
marosoftmmalerba
authored andcommitted
fix(select): give focus to the first option when loaded asynchronously (#11372)
This is to fix a problem with loosing the focus and not allowing the keys to navigate through the options displayed in the dropdown menu. Fixes #11357
1 parent 9852ff7 commit 998199f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/select/select.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,7 @@ function SelectProvider($$interimElementProvider) {
12341234
$$rAF(function() {
12351235
element.addClass('md-active');
12361236
info.dropDown.element.css(animator.toCss({transform: ''}));
1237+
autoFocus(opts.focusedNode);
12371238

12381239
resolve();
12391240
});

0 commit comments

Comments
 (0)