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

Adds composePreventableEvent #1880

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

CrutchTheClutch
Copy link

Description

I noticed #905 and I had a similar need for a utility like this.

  • Aims to improve the checkForDefaultPrevented api by splitting composeEventHandlers into two separate functions (composeEventHandlers & composePreventableEventHandlers).
  • Replaces a majority of the calls for composeEventHandlers with the new composePreventableEventHandlers.
  • Replaces calls where checkForDefaultPrevented was false with the reworked composeEventHandlers function.

closes #905

@chaance
Copy link
Member

chaance commented Aug 16, 2024

@CrutchTheClutch I'm sorry no one got back to you on this. Are you still interested in seeing this one across the finish line? If so we'd need to resolve conflicts. Totally understand if not, just let me know and I'll put this on my todo list.

@CrutchTheClutch
Copy link
Author

@chaance For sure! No worries at all, I should be able to take a look at this again early next week

@CrutchTheClutch
Copy link
Author

CrutchTheClutch commented Aug 21, 2024

@chaance I believe this gets us back up to date with the current changes. I also went ahead and updated Form and Menubar since they were not components when I originally made this pull request. I'm a little unfamiliar with the codebase as it's been a while since I last looked at this, but the changes should be good to go now. I have also gone ahead and confirmed I can build locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[core/primitive][composeEventHandlers] Replace checkForDefaultPrevented api
2 participants