-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[IconMenu] Add open, onRequestOpen, onRequestClose properties, fix #2341 #2343
Conversation
Nice work 👍 onRequestChange={(open, reason) => { if (reason === 'clickaway') this.setState({open}); }} |
if (process.env.NODE_ENV !== 'production') { | ||
this._warningIfNeeded(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this update the open state depending the prop.open in the getInitialState
method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot about this.
Yeah, nice work. Could you take into account @subjectix feedback? |
Btw, |
Well, that's a good question!
Sure, we could improve the consitency. Though? @shaurya947 @subjectix @chrismcv |
It's okie with
That's my concern, but I am okie with our convention :). |
I would say that it's better to use |
Okie. Another question: what is the reason when user select menuItem by |
@quangbuule Do the honor and open 2 issues regarding both |
@subjectix So what do you think about this:
Will the input value be changed after onChange? |
Well, it depend on how you intreprete the different properties of https://facebook.github.io/react/docs/two-way-binding-helpers.html |
It's okie for me with |
@quangbuule Well, I myself like |
Why not just calling it |
No description provided.