-
Notifications
You must be signed in to change notification settings - Fork 54
fix(Provider): Honor disableAnimations #2087
Conversation
@@ -24,16 +24,17 @@ export default () => { | |||
return Object.keys(styles).reduce((acc, cssPropertyName) => { | |||
const cssPropertyValue = styles[cssPropertyName] | |||
|
|||
if (animationProps.indexOf(cssPropertyName) !== -1) { |
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.
We want to remove animationProps
even if they are objects.
@@ -231,6 +231,7 @@ const renderComponent = <P extends {}>( | |||
const direction = rtl ? 'rtl' : 'ltr' | |||
const felaParam = { | |||
theme: { direction }, | |||
disableAnimations, |
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.
We have check in the plugin for this:
if (props && props.disableAnimations && type === 'RULE')
Do we really need this one here too?
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.
But the felaParam
here is the props
in the plugin. That was the cause of the issue.
We originally passed or params to fela but that changed in #1957 and it caused this bug.
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.
Got it! Thanks for the clarification
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.
Please add changelog entry before merging
Fixes #2086