Bug: Toggling the disabled prop on RaisedButton triggers incorrect transitions #702
Labels
component: button
This is the name of the generic UI component, not the React module!
component: switch
This is the name of the generic UI component, not the React module!
The componentWillReceiveProps on RaisedButton makes the
zDepth
transition based onnextProps
, while all other styles are set based on the values of the current props. e.g., here (called from withincomponentWillReceiveProps
>getStyles
)As a result, when the
disabled
prop goes fromfalse
totrue
, the button has its z-index set to 1 but the color remains grey. Similarly, whendisabled
goes fromtrue
tofalse
, the button gets a z-index of 0 and the default (or primary or secondary) color.The text was updated successfully, but these errors were encountered: