Skip to content

Commit deb6f22

Browse files
committed
Scroll focused element into view
1 parent ee1a1f9 commit deb6f22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

assets/js/hooks/combobox.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ export default {
227227
if (el.id) {
228228
this.refs.searchInput.setAttribute('aria-activedescendant', el.id)
229229
}
230+
231+
el.scrollIntoView({ block: 'nearest' })
230232
},
231233

232234
focusFirstOption() {

0 commit comments

Comments
 (0)