Skip to content

onClick returns PointerEvent instead of MouseEvent#6267

Merged
christian-bromann merged 1 commit intostenciljs:mainfrom
MatteoFeltrin:fix/onclick-return-pointer-event
May 29, 2025
Merged

onClick returns PointerEvent instead of MouseEvent#6267
christian-bromann merged 1 commit intostenciljs:mainfrom
MatteoFeltrin:fix/onclick-return-pointer-event

Conversation

@MatteoFeltrin
Copy link
Copy Markdown
Contributor

@MatteoFeltrin MatteoFeltrin commented May 29, 2025

resolve #6217

What is the current behavior?

onClick attribute returns a MouseEvent

What is the new behavior?

As per MDN documentation, onClick attribute now returns a PointerEvent
https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#event_type

Does this introduce a breaking change?

  • Yes
  • No

Testing

Is any test needed?

@MatteoFeltrin MatteoFeltrin requested a review from a team as a code owner May 29, 2025 07:55
Copy link
Copy Markdown
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@christian-bromann christian-bromann merged commit dc4bd52 into stenciljs:main May 29, 2025
@christian-bromann
Copy link
Copy Markdown
Member

Thank you for your contribution!

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.

bug: onClick returns MouseEvent Type

2 participants