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: list prop should be passed to input #1835

Closed
raptoria opened this issue Jul 5, 2017 · 1 comment
Closed

Input: list prop should be passed to input #1835

raptoria opened this issue Jul 5, 2017 · 1 comment
Assignees
Labels

Comments

@raptoria
Copy link

raptoria commented Jul 5, 2017

Input doesn't support 'list' attribute so that it can be used with a datalist, eg.

<input list="languages">
<datalist id="languages">
 <option value="English"></option>
 <option value="Chinese"></option>
 <option value="Dutch"></option>
</datalist>
@raptoria raptoria changed the title Input - support for html5 'list' attribute so that it can be used with a <datalist> [feature request] Input - support for html5 'list' attribute [feature request] Jul 5, 2017
@layershifter
Copy link
Member

list should be passed to the input, current workarounds:

<Input placeholder='Search...' input={{ list: 'languages' }} />
  <Input>
    <input list="languages" />
    <datalist id="languages">
      <option value="English" />
      <option value="Chinese" />
      <option value="Dutch" />
    </datalist>
  </Input>

@layershifter layershifter changed the title Input - support for html5 'list' attribute [feature request] Input: list prop should be passed to input Jul 5, 2017
@layershifter layershifter self-assigned this Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants