We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1b1adf commit ab6d336Copy full SHA for ab6d336
1 file changed
packages/react-dom/src/server/ReactDOMServerFormatConfig.js
@@ -919,12 +919,7 @@ function pushStartTextArea(
919
children.length <= 1,
920
'<textarea> can only have at most one child.',
921
);
922
- // TODO: remove the coercion and the DEV check below because it will
923
- // always be overwritten by the coercion several lines below it. #22309
924
- if (__DEV__) {
925
- checkHtmlStringCoercion(children[0]);
926
- }
927
- value = '' + children[0];
+ // Fall through. `'' + children` is same as `'' + children[0]` for 1-element arrays
928
}
929
if (__DEV__) {
930
checkHtmlStringCoercion(children);
0 commit comments