Repository navigation
fix(aria/menu): accept a bare disabled attribute on MenuItem - #33965
DuncanFaulkner wants to merge 1 commit into
Conversation
|
Looks like CI is failing. |
MenuItem.disabled was declared as input<boolean>(false), so <div ngMenuItem disabled> failed strict template type-checking and was not disabled in JIT. Use booleanAttribute, like the disabled inputs on the other aria directives. Fixes angular#33964
4362f94 to
63433c4
Compare
|
@crisbeto all fixed |
|
This might introduce side effect in some cases. Currently Aria menu items only supports soft-disabled by only setting I haven't tested but I think this affects the list-navigation behavior. If a button menu item has set |
|
The way we deal with this on Material components that support coercion for |
We have in some places like Aria accordion trigger, because it's commonly applied to Adding |
MenuItem.disabledwas declared asinput<boolean>(false), so<div ngMenuItem disabled>failed strict template type-checking (and was not disabled in JIT). It now usesbooleanAttribute, like thedisabledinputs on the other aria directives.Adds a test that a bare
disabledattribute setsaria-disabled="true".Fixes #33964