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

more than one Select in a Component #451

Closed
luodaxu opened this issue Sep 17, 2015 · 2 comments
Closed

more than one Select in a Component #451

luodaxu opened this issue Sep 17, 2015 · 2 comments

Comments

@luodaxu
Copy link

luodaxu commented Sep 17, 2015

now I need more than one Select in a Component, How can i choose the specific Select and when first Select Component selected value change the second one will rerender the options...do not use React state will be better
Is it possible? Thanks

@PetrGlad
Copy link
Contributor

Add change callback to first select that will change properties of second one.
Most likely you have 2 select components in your JSX that have their own properties. You change properties and components are updated by React. No need to refer components directly (although you can).
Is this what you mean?

@brianreavis
Copy link
Collaborator

(closing because i'm assuming this is resolved)

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

3 participants