2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-16 09:10:33 +03:00

fix: Keep focus on input after select to improve accessibility (#1727)

Co-authored-by: Jeff Sagal <sagalbot@gmail.com>

Huge thanks to @Pytal for the great work!
This commit is contained in:
Pytal
2022-12-16 12:47:19 -08:00
committed by GitHub
parent 8d2ac2d36c
commit 26f082713e
6 changed files with 74 additions and 7 deletions
+2
View File
@@ -37,6 +37,7 @@ describe('Selectable prop', () => {
selectable: (option) => option !== 'two',
})
Select.vm.open = true
Select.vm.typeAheadPointer = 1
Select.findComponent({ ref: 'search' }).trigger('keydown.down')
@@ -50,6 +51,7 @@ describe('Selectable prop', () => {
selectable: (option) => option !== 'two',
})
Select.vm.open = true
Select.vm.typeAheadPointer = 2
Select.findComponent({ ref: 'search' }).trigger('keydown.up')