File tree 1 file changed +2
-2
lines changed
packages/react-dom/src/client 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ export function postMountWrapper(
261
261
// When not syncing the value attribute, the value property points
262
262
// directly to the React prop. Only assign it if it exists.
263
263
if ( props . hasOwnProperty ( 'value' ) ) {
264
- const value = toString ( getToStringValue ( props . value ) ) ;
264
+ const value = getToStringValue ( props . value ) ;
265
265
266
266
// Always assign on buttons so that it is possible to assign an
267
267
// empty string to clear button text.
@@ -272,7 +272,7 @@ export function postMountWrapper(
272
272
// to the current value in case the browser provided value is not an
273
273
// empty string.
274
274
if ( isButton || value !== node . value ) {
275
- node . value = value ;
275
+ node . value = toString ( value ) ;
276
276
}
277
277
}
278
278
} else {
You can’t perform that action at this time.
0 commit comments