Skip to content

fix(aria/menu): accept a bare disabled attribute on MenuItem - #33965

Open
DuncanFaulkner wants to merge 1 commit into
angular:mainfrom
DuncanFaulkner:fix/aria-menu-item-disabled-attribute
Open

DuncanFaulkner wants to merge 1 commit into
angular:mainfrom
DuncanFaulkner:fix/aria-menu-item-disabled-attribute

Conversation

@DuncanFaulkner

Copy link
Copy Markdown
Contributor

MenuItem.disabled was declared as input<boolean>(false), so <div ngMenuItem disabled> failed strict template type-checking (and was not disabled in JIT). It now uses booleanAttribute, like the disabled inputs on the other aria directives.

Adds a test that a bare disabled attribute sets aria-disabled="true".

Fixes #33964

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

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(aria/menu): MenuItem disabled doesn't accept a bare attribute

1 participant