Skip to content

Bug: Toggling the disabled prop on RaisedButton triggers incorrect transitions #702

@cdax

Description

@cdax

The componentWillReceiveProps on RaisedButton makes the zDepth transition based on nextProps, while all other styles are set based on the values of the current props. e.g., here (called from within componentWillReceiveProps > getStyles)

As a result, when the disabled prop goes from false to true, the button has its z-index set to 1 but the color remains grey. Similarly, when disabled goes from true to false, the button gets a z-index of 0 and the default (or primary or secondary) color.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: buttonChanges related to the button.scope: switchChanges related to the switch.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions