Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 821e93b

Browse files
author
Mitchell Demler
authored
Revert defaulting control value to a string
This reverts the change in #1151. Control should not determine what type the value should be. Control needs to return the value as is.
1 parent 471dc2a commit 821e93b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/components/control-component-factory.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,6 @@ function createControlClass(s) {
664664
controlProps.children
665665
);
666666
}
667-
// Set a default value to prevent it being treated as uncontrolled input
668-
if (!controlProps.value && !mappedProps.value) {
669-
mappedProps.value = '';
670-
}
671667
return createElement(
672668
ComponentWrapper,
673669
{

0 commit comments

Comments
 (0)