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

Autofocus of dropdown search field #2108

Closed
jaqua opened this issue Sep 23, 2017 · 1 comment
Closed

Autofocus of dropdown search field #2108

jaqua opened this issue Sep 23, 2017 · 1 comment
Labels

Comments

@jaqua
Copy link

jaqua commented Sep 23, 2017

Steps

I'm trying to get focus on search input field initially, so the user do not have to click on the dropdown. Instead the user should be able so start typing/searching...

<Dropdown
  autoFocus
  name={name}
  placeholder='Select type'
  search
  selection
  onChange={this.handleChange}
  options={options}
/>

Expected Result

Autofocus search input field

Actual Result

No focus of input field

Version

0.73.1

@layershifter
Copy link
Member

Example in docs

<Dropdown searchInput={{ autoFocus: true }} />

Codepen

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