Skip to content

fix: DropDownItem prop-types active prop (fix: #3598) - #3608

Merged
mxschmitt merged 3 commits into
masterfrom
bugfix/DropDownItem/prop-types
Apr 10, 2019
Merged

fix: DropDownItem prop-types active prop (fix: #3598)#3608
mxschmitt merged 3 commits into
masterfrom
bugfix/DropDownItem/prop-types

Conversation

@mxschmitt

Copy link
Copy Markdown
Member

Fixes #3598.

I hope it's okay, that I simplified these == null and != null statements. (active var type is null|bool and makeEventKey() is null|String)

@taion taion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think this is quite right... we want to treat false differently from null here

taion
taion previously approved these changes Apr 8, 2019

@taion taion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good

the one thing i might do naming-wise is – do active: propsActive in destructuring, then call the calculated value active

but that's super nit-picky

@taion

taion commented Apr 8, 2019

Copy link
Copy Markdown
Member

should we disable the "automatically dismiss reviews" thing? assuming that was an automatic dismissal

@mxschmitt
mxschmitt requested a review from jquense April 9, 2019 05:54
@mxschmitt
mxschmitt merged commit cf13d90 into master Apr 10, 2019
@mxschmitt
mxschmitt deleted the bugfix/DropDownItem/prop-types branch April 10, 2019 20:07
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

Successfully merging this pull request may close these issues.

3 participants