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(types): more precise types for Events and added missing definitions #9675

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mtorromeo
Copy link

This pr fixes some imprecise Event definitions and adds some that were missing.

The list was compiled by consulting the list of events documented on MDN that are fired by Element or a subclass and where the event is not experimental.

Personally, I was impacted more often by the wrong onInput and onSubmit definitions.

Some other notable changes are the onClick event being changed to PointerEvent (which extends MouseEvent, so I don't see an issue here) and onScroll, being the only downgrade, which was not documented as an UiEvent on MDN, and I am not sure why it was defined as such here.

mtorromeo added a commit to mtorromeo/vue-patternfly that referenced this pull request Nov 25, 2023
nazarii828 added a commit to nazarii828/vue-patternfly that referenced this pull request Mar 18, 2024
brendon726 added a commit to brendon726/Vue-patternfly that referenced this pull request Mar 27, 2024
@edison1105 edison1105 added ready to merge The PR is ready to be merged. scope: types labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR is ready to be merged. scope: types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants