Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cdk/tree): only handle keyboard events directly from the node #29861

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

crisbeto
Copy link
Member

Currently the CDK tree handle any keyboard event coming from a descendant. This problematic if there are interactive elements like inputs inside the tree, because their default behavior will be prevented.

This change switches to only handling events coming either directly from the tree or directly from a tree node.

Fixes #29828.

Currently the CDK tree handle any keyboard event coming from a descendant. This problematic if there are interactive elements like inputs inside the tree, because their default behavior will be prevented.

This change switches to only handling events coming either directly from the tree or directly from a tree node.

Fixes angular#29828.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Oct 11, 2024
@crisbeto crisbeto requested a review from a team as a code owner October 11, 2024 08:18
@crisbeto crisbeto requested review from amysorto and wagnermaciel and removed request for a team October 11, 2024 08:18
@crisbeto crisbeto removed the request for review from amysorto October 15, 2024 18:51
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Oct 15, 2024
@crisbeto crisbeto merged commit 3b4ade5 into angular:main Oct 15, 2024
25 of 27 checks passed
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Space and New line key not working in a textarea used inside a mat-tree
2 participants