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 attachEvent type error #1661

Merged
merged 3 commits into from
Jan 20, 2024

Conversation

jhsware
Copy link
Contributor

@jhsware jhsware commented Dec 4, 2023

This fixes a type error in attachEventToDocument method.

A note though, perhaps we should remove:

  isDefaultPrevented: () => boolean;
  isPropagationStopped: () => boolean;

The implementation was moved to core from inferno-compat and are specifically geared towards React-compatibility. Given how much React has evolved, perhaps it isn't worth keeping React-fixes in the core Inferno code base.

ref 1
ref 2

@Havunen Havunen closed this Dec 14, 2023
@Havunen Havunen reopened this Dec 14, 2023
@Havunen
Copy link
Member

Havunen commented Jan 11, 2024

Hi can you fix the conflicts please.
I think we should keep those methods in they are usefull in the sybthetic events. Also if we implement inferno mobile

@Havunen Havunen merged commit 35ce542 into infernojs:master Jan 20, 2024
3 checks passed
@jhsware jhsware deleted the fix-attachevent-type-error branch January 21, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants