Skip to content

Commit 3593aa9

Browse files
committed
Remove empty string default for props.value
enables use to alternate between passing undefined and empty string as props.value to clear the component input values (because {value: undefined} doesn’t get defaulted to empty stirng)
1 parent f27c475 commit 3593aa9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ReactCodeInput.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ ReactCodeInput.defaultProps = {
284284
disabled: false,
285285
forceUppercase: false,
286286
fields: 4,
287-
value: '',
288287
type: 'text',
289288
filterKeyCodes: [189, 190],
290289
filterChars: ['-', '.'],

0 commit comments

Comments
 (0)