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

Is it possible to add id and ref attributes to the generated hidden input? #604

Closed
tkiethanom opened this issue Nov 19, 2015 · 7 comments
Closed

Comments

@tkiethanom
Copy link

Is it possible to add id and ref attributes to the generated hidden input? So far I haven't found a way to add attributes to the hidden input.

@robtweed
Copy link

I'd also find such a feature very useful. Without being able to define a ref for the text input field, it's not possible to invoke its focus() method as there's no way to reference the element

@hank7444
Copy link

+1, I want to focus the hidden input

@DanBradbury
Copy link

bump

@Petesta
Copy link

Petesta commented Oct 4, 2016

@JedWatson This appears to be a problem with the jsx-a11y/label-has-for rule for eslint. In the generated hidden input we're missing an id and there is no way to specify this. This behavior conflicts with the aforementioned rule.

What can be done to help fix this?

The below issue is what I'm experiencing.

https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/51

@lbalceda
Copy link

lbalceda commented Oct 4, 2016

+1

@rubencodes
Copy link
Contributor

I second the issue mentioned by @Petesta.

@jossmac
Copy link
Collaborator

jossmac commented Mar 17, 2020

Version 1 of react-select is no longer supported.

In the best interest of the community we've decided to spend the time we have available on the latest version.

We apologise for any inconvenience.

Please see:

  1. v1 to v2 upgrade guide
  2. v1 documentation and examples

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

8 participants