dillon1000/react
Commit
Browse files Fix passing symbols and functions to textarea (#13362)
* refactor: move getSafeValue to separate file * fix(?): ReactDOMFiberTextarea sanitization for symbols and functions * tests: add TODOs for warnings * fix: restore accidentally removed test * fix: remove redundant logic for initialValue * refactor: integrate SafeValue typings into textarea * fix: restore stringified newValue for equality check * fix: remove getSafeValue from hostProps * refactor: SafeValue -> ToStringValue * refactor: update TODO comment in test file * refactor: no need to convert children to ToStringValue
Changed paths2 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactDOMTextarea-test.js ModifiedM packages/react-dom/src/client/ReactDOMFiberTextarea.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…