Closed CoderK closed 8 years ago
Related? https://github.com/Lucifier129/react-lite/issues/25 - binding event inside onClick prop (inconsistent with react)
Thanks, I could understand why. It's for reducing cost of code, but It makes some side effects in one instances. ㅠ-ㅠ.
I will consider it, and try to make them coincident in next version of react-lite:-)
Hi all, react-lite v0.0.19 update the event-system from dom level0 to delegation, see it at: https://github.com/Lucifier129/react-lite/blob/master/src/event-system.js
@fritx I think binding event inside a event listener now will be called like regular react.
nice
that sounds good!
I have a question about react-lite's event system. Why does function returned from getEventHandler prevent from propagating native event?
I had attached native click event listener on document.body, but because of it, my event listener was never called. React doesn't do like that.