Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Inconsistent behavior with disabled and ng-disabled #3797

Closed
@OlsonDev

Description

@OlsonDev

If I add the disabled attribute to md-switch, md-select, & md-slider the behavior is weird.

  • md-switch looks enabled, can be focused (but doesn't change appearance), doesn't respond to spacebar or clicks
  • md-select looks disabled, doesn't respond to clicks, can't be focused
  • md-slider looks disabled, can be focused, responds to clicks, does not open its thumb

If I change disabled to ng-disabled="true":

  • md-switch behaves the same (as if it had the disabled attribute)
  • md-select behaves the same (as if it had the disabled attribute)
  • md-slider no longer responds to clicks but can be focused

I wouldn't doubt if other controls exhibit poor behaviors but these are the ones I have in my app and have tested.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions