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

Set focus to Chip input field #269

Open
armanneysi89 opened this issue Mar 10, 2017 · 1 comment
Open

Set focus to Chip input field #269

armanneysi89 opened this issue Mar 10, 2017 · 1 comment

Comments

@armanneysi89
Copy link

Is it possible to set the focus on chip-input field?

The textcursor has to be displayed on focus.

@zemirco
Copy link
Contributor

zemirco commented Mar 10, 2017

Maybe this can help as a start

http://stackoverflow.com/a/32152892/1256496

inside componentDidMount

  • use ref on your outer component
  • use .querySelector('.Chip-input') to find the input field
  • use .focus() to set the cursor into the input field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants