Skip to content

Conversation

@thechriswalker
Copy link
Contributor

Previously if the component was mounted with disabled === true
then zDepth is zero. If the component is updated to disabled === false
the zDepth remained zero. No FloatingActionButton.

To resolve this we reset the zDepth status on prop change, as well as on
componentWillMount.

Previously if the component was mounted with `disabled === true`
then zDepth is zero. If the component is updated to `disabled === false`
the zDepth remained zero. No **Floating**ActionButton.

To resolve this we reset the zDepth status on prop change, as well as on
componentWillMount.
hai-cea added a commit that referenced this pull request Mar 10, 2015
…-change

Fixes zdepth on change of "disabled" prop in FAB
@hai-cea hai-cea merged commit 63eec19 into mui:master Mar 10, 2015
@hai-cea
Copy link
Member

hai-cea commented Mar 10, 2015

Thanks @thechriswalker !

brianfeister pushed a commit to brianfeister/material-ui that referenced this pull request May 1, 2017
@zannager zannager added the component: Fab The React component. label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: Fab The React component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants