Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 6.8k
matTabLink disabled input should be matTabLinkDisabled #17446
Copy link
Copy link
Open
Labels
GThis is is related to a Google internal issueThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabstarget: majorThis PR is targeted for the next major releaseThis PR is targeted for the next major release
Milestone
Description
Metadata
Metadata
Assignees
Labels
GThis is is related to a Google internal issueThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabstarget: majorThis PR is targeted for the next major releaseThis PR is targeted for the next major release
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-zju32k
Steps to reproduce:
matTabLinkmatTabLinkExpected Behavior
Tab should be disabled, and tooltip should show.
Actual Behavior
Tooltip did not show.
Notes/Thoughts
If the input is changed to
matTabLinkDisabled, thendisabledand[disabled]="true"should still be able to work. However, it would also be possible to usematTabLinkDisabled, which would make it possible to disable theMatTabLinkspecifically, without disabling any other directive on the element.I believe this would be a non breaking change, as the input is declared in the
inputsfield on component:So my understanding is right now, you can’t read the disabled field by name anyways.
Environment