Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html.elements.datalist - event key codes comes out undefined #9217

Closed
Kodatham opened this issue Feb 22, 2021 · 2 comments
Closed

html.elements.datalist - event key codes comes out undefined #9217

Kodatham opened this issue Feb 22, 2021 · 2 comments
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

Comments

@Kodatham
Copy link

Input element with datalist: on arrow keys up or down, onkeyup or onkeydown never detects the arrow keys and the event keycodes always comes as undefined.

In Mozilla firefox, arrow keys are detected. However, does not have onkeyup or onchange events are not aligned as Chrome.

MDN page report details
@queengooborg queengooborg added the data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML label Feb 23, 2021
@ddbeck
Copy link
Collaborator

ddbeck commented Mar 15, 2021

Hi @Kodatham. A few questions for you:

  • Testing: How did you test this? What versions of Chrome and Firefox did you use? What did you expect to happen in each browser? What was the outcome of the test in each browser?
  • What did you expect the compatibility table to tell you about the difference between the browsers?
  • Can you share any links to bugs, documentation, or other material which may have been helpful for you while investigating this issue?

A look on my own suggests that key events for datalist is currently undefined behavior in the relevant specifications: whatwg/html#2605

@ddbeck ddbeck added the info needed This needs more information to review or act on. label Mar 15, 2021
@queengooborg
Copy link
Contributor

I'm going to go ahead and close this issue, since there has been no response and more info is needed to proceed. If this is still an issue, please reply to this thread with the requested information and I'll be happy to reopen this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML
Projects
None yet
Development

No branches or pull requests

4 participants
@ddbeck @queengooborg @Kodatham and others