-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Menus] Remove style-propable mixin #3219
Conversation
} | ||
|
||
let mergedChildrenStyles = this.mergeStyles( | ||
let mergedChildrenStyles = Object.assign( | ||
child.props.style || {}, |
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.
hmmmm this is dangerous. Object.assign({}, child.props.style, selectedChildrenStyles)
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.
Oh good catch @alitaheri!
|
All good 👍 ^_^ |
@@ -547,7 +544,7 @@ const Menu = React.createClass({ | |||
transitionDelay = cumulativeDelay; | |||
} | |||
|
|||
childrenContainerStyles = this.mergeStyles(styles.menuItemContainer, { | |||
childrenContainerStyles = Object.assign(styles.menuItemContainer, { |
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.
Object.assign({},
?
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 missed the loop that time, though it didn't seem to cause an issue during testing.
I'm going to add it anyway though.
|
@newoga Thanks! |
[Menus] Remove style-propable mixin
No description provided.