dillon1000/react
Commit
Browse files Move Safari onClick hack into ReactDOMComponent (#8189)
This is already where we trap non-bubbling events. We also already branch on the tag type so we know if it is interactive or not. This will let us get rid of the didPutListener and willDeleteListener abstractions. I use a simple onclick = emptyFunction to avoid the need for a bookkeeping map.
Changed paths2 files
First-parent comparisonsrc/renderers/dom/shared/eventPlugins/SimpleEventPlugin.js ModifiedM src/renderers/dom/stack/client/ReactDOMComponent.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…