File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/components/date-input/components Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ const IndividualDateInput: React.FC<IndividualDateInputProps> = ({
4444
4545 const inputID = id || `${ ctxId } -${ inputType } ` ;
4646 const inputName = name || `${ ctxName } -${ inputType } ` ;
47- const inputValue = value || ctxValue ?. [ inputType ] || undefined ;
48- const inputDefaultValue = defaultValue || ctxDefaultValue ?. [ inputType ] || undefined ;
47+ const inputValue = value !== undefined ? value : ctxValue ?. [ inputType ] ;
48+ const inputDefaultValue = defaultValue !== undefined ? defaultValue : ctxDefaultValue ?. [ inputType ] ;
4949
5050 const handleChange = ( e : ChangeEvent < HTMLInputElement > ) => {
5151 e . persist ( ) ;
@@ -95,6 +95,7 @@ const IndividualDateInput: React.FC<IndividualDateInputProps> = ({
9595
9696IndividualDateInput . defaultProps = {
9797 pattern : '[0-9]*' ,
98+ type : 'number' ,
9899} ;
99100
100101export const DayInput : React . FC < Omit < IndividualDateInputProps , 'inputType' > > = props => (
You can’t perform that action at this time.
0 commit comments