Skip to content

[Button] performClick() behavior when MaterialButton is disabled #5019

Description

@pubiqq

Components such as android.widget.Button and android.widget.CheckBox perform click actions when the performClick method is called, even if they're disabled. I see no reason why the MaterialButton should be any different.

Also, the original implementation is incorrect because clicking on the disabled button works inconsistently; it doesn't invoke the toggle() method, but still performs click actions.

Originally posted by @pubiqq in #4967

--

Material Library version: 1.14.0-alpha10

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions