Skip to content

Conversation

@muan
Copy link
Contributor

@muan muan commented Jan 7, 2019

So that we won't need to sync up this kind - of fixes.

@muan muan requested a review from a team January 7, 2019 16:43
const input = this.querySelector('input')
const results = document.getElementById(owns)
if (!(input instanceof HTMLInputElement) || !results) return
input.setAttribute('aria-owns', owns)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

combobox-nav requires aria-owns relationship to be on input & list since it is unaware of the parent element. This copies auto-complete[aria-owns] onto input.

})
e.key = key
if (key !== key.toLowerCase()) e.shiftKey = true
if (key.length === 1 && key !== key.toLowerCase()) e.shiftKey = true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shiftKey was true on ArrowDown and others but it should not.

@muan muan requested a review from dgraham January 7, 2019 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants