haxe-react icon indicating copy to clipboard operation
haxe-react copied to clipboard

SyntheticEvent

Open kevinresol opened this issue 5 years ago • 3 comments

kevinresol avatar Jan 29 '20 07:01 kevinresol

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?

kLabz avatar Jan 29 '20 08:01 kLabz

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

kevinresol avatar Jan 29 '20 11:01 kevinresol

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.

kevinresol avatar Feb 04 '20 05:02 kevinresol