Skip to content

Commit 6d5dac8

Browse files
committed
Small warning fixes
1 parent d9d049a commit 6d5dac8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/date-input/DateInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class DateInput extends PureComponent<DateInputProps, DateInputState> {
9393

9494
return (
9595
<FormGroup<Omit<DateInputProps, 'value' | 'defaultValue'>> inputType="dateinput" {...rest}>
96-
{({ className, name, id, error, ...restRenderProps }) => {
96+
{({ className, name, id, error, autoSelectNext, ...restRenderProps }) => {
9797
const contextValue: IDateInputContext = {
9898
id,
9999
name,

src/components/date-input/components/IndividualDateInputs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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];
48-
const inputDefaultValue = defaultValue || ctxDefaultValue?.[inputType];
47+
const inputValue = value || ctxValue?.[inputType] || undefined;
48+
const inputDefaultValue = defaultValue || ctxDefaultValue?.[inputType] || undefined;
4949

5050
const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
5151
e.persist();

0 commit comments

Comments
 (0)