-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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 missing default iconStyle #3514
Conversation
@@ -158,6 +158,7 @@ const IconMenu = React.createClass({ | |||
}, | |||
touchTapCloseDelay: 200, | |||
useLayerForClickAway: false, | |||
iconStyle: {}, |
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.
Thanks @pdf! If we move forward with this, could you put this in the object in alphabetical order?
@oliviertassinari @alitaheri This seems like it's an issue since we moved to |
Yeah, this does feel to me like a band-aid, rather than a fix for the root cause. An alternative is to always use Probably worth noting that |
0776efa
to
7fe7d47
Compare
I agree that's the pattern we've been used in the past for other components for style props that may be The previous |
An empty object in |
Also note that all styles that are coming from props MUST not be touched, otherwise, reused instances will be mutated and hard-to-track bugs will infest the code! so, everywhere using props, we must do |
I agree. Thanks for raising this @pdf! Could you make that change |
Give me a day or two @newoga - I want to take a closer look at this, pretty sure the issue is more wide-spread. |
7fe7d47
to
df903b4
Compare
I think I checked all the other usage of |
@newoga Change looks good 👍 |
[IconMenu] Add missing default iconStyle
[IconMenu] Add missing default iconStyle
Otherwise IconButton explodes due to undefined iconStyle