Skip to content

Conversation

@AntonioVentilii
Copy link
Contributor

Motivation

Up until now, the event modifiers could be used type-safely only with Mouse events. However, we may have other scopes (for example, using modifiers in the submit event of a form). In these cases, we need to generalize the type and adapt it to the context.

Changes

  • Add generic type for the event in all the modifiers utils.

@AntonioVentilii AntonioVentilii marked this pull request as ready for review September 24, 2025 11:07
@AntonioVentilii AntonioVentilii requested review from a team as code owners September 24, 2025 11:07
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; thx

@AntonioVentilii AntonioVentilii merged commit 11b33a1 into main Sep 24, 2025
14 checks passed
@AntonioVentilii AntonioVentilii deleted the fix-frontend/Generalize-the-event-type-for-all-event-modifiers branch September 24, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants