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

input function attributes does not take in "list" #52

Closed
chandru89new opened this issue Mar 29, 2020 · 2 comments
Closed

input function attributes does not take in "list" #52

chandru89new opened this issue Mar 29, 2020 · 2 comments

Comments

@chandru89new
Copy link

** Description of the issue **
The input function does not use/respect the list attribute if given. In render, it drops that attribute. This makes it impossible to use the datalist feature through an input tag.

** Reproduce **
https://codesandbox.io/s/zealous-nightingale-kobop

** Expected behavior **
During render, input should use the list attribute given to it.

@ohanhi
Copy link
Owner

ohanhi commented Mar 30, 2020

This issue seems to be in hyperscript, not hyperscript-helpers. The following code seems to work just as poorly as your example:

import "./styles.css";
import h from "hyperscript";

document
  .getElementById("app")
  .appendChild(
    h("div", [
      h("input", { list: "countries" }),
      h("datalist#countries", [
        h("option", { value: "USA" }),
        h("option", { value: "India" })
      ])
    ])
  );

@chandru89new
Copy link
Author

Thank you. Apologies for not checking this further before raising the bug. I'll close this.

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

No branches or pull requests

2 participants