Skip to content

Commit 3e2f971

Browse files
committed
Selection should be cleared when navigation stops
1 parent dfad19f commit 3e2f971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ describe('combobox-nav', function() {
4646

4747
combobox.stop()
4848
press(input, 'ArrowDown')
49-
assert.equal(list.children[2].getAttribute('aria-selected'), 'true')
49+
assert(!input.hasAttribute('aria-activedescendant'), 'Nothing should be selected')
50+
assert(!list.querySelector('[aria-selected=true]'), 'Nothing should be selected')
5051

5152
combobox.destroy()
5253
assert.equal(list.children[2].getAttribute('aria-selected'), 'false')

0 commit comments

Comments
 (0)