dillon1000/react

Commit

Fix for issue/6027.

ReactDOMSelect's _handleChange function tries to set
this._wrapperState.pendingUpdate = true after executing the onChange
function. However, if the select was removed as a result of said
fuction, this._wrapperState would be null. Resulting in an
Uncaught TypeError: Cannot set property 'pendingUpdate' of null.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/dom/client/wrappers/ReactDOMSelect.js ModifiedM src/renderers/dom/client/wrappers/__tests__/ReactDOMSelect-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…