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

SyntheticEvent #36

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

SyntheticEvent #36

wants to merge 1 commit into from

Conversation

kevinresol
Copy link

No description provided.

@kLabz
Copy link
Owner

kLabz commented Jan 29, 2020

I don't event use event classes from haxe-react x)
Should I update and pull https://github.com/kLabz/haxe-react-types/blob/master/src/react/types/event/SyntheticEvent.hx here?

@kevinresol
Copy link
Author

SyntheticEvent is also used in react native but no DOM stuff there

@kevinresol
Copy link
Author

I think both implementation are similar. But iirc at runtime SyntheticEvent is actually a "class" instead of a plain anon object. And I think both target and nativeEvent should be parametrized without constraints. Because in react-native I have encountered cases that target is always null/undefined and nativeEvent can be a plain object.

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