Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Commit 2572241

Browse files
JeromeDeLeonbluebill1049
authored andcommitted
Allow any data as initial value aside from checkbox (#23)
1 parent 586ca20 commit 2572241

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ const RHFInput = ({
3838
? defaultChecked === undefined
3939
? false
4040
: defaultChecked
41-
: defaultValue === undefined
42-
? ''
4341
: defaultValue;
4442
const [inputValue, setInputValue] = React.useState(defaultData);
4543
const valueRef = React.useRef(defaultData);

0 commit comments

Comments
 (0)