Skip to content

KeyInterceptorService: Do not observe dom when targeting the element itself#12380

Merged
ScarletKuro merged 3 commits intoMudBlazor:devfrom
JMolenkamp:feature/allow-attaching-key-event-handlers-to-element-itself
Jan 4, 2026
Merged

KeyInterceptorService: Do not observe dom when targeting the element itself#12380
ScarletKuro merged 3 commits intoMudBlazor:devfrom
JMolenkamp:feature/allow-attaching-key-event-handlers-to-element-itself

Conversation

@JMolenkamp
Copy link
Contributor

Continuation of #12377, skipping observation of the DOM if the element itself is targeted.
In that case, added children will never require attachment of event handlers.
Also, added an example to show usage and as a comparison of both options.

@mudbot mudbot bot added the enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library label Jan 2, 2026
@ScarletKuro ScarletKuro merged commit 034e665 into MudBlazor:dev Jan 4, 2026
6 checks passed
This was referenced Feb 20, 2026
This was referenced Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants