diff --git a/client/src/components/atoms/Form/Input.tsx b/client/src/components/atoms/Form/Input.tsx index 4684a7e..af6ad71 100644 --- a/client/src/components/atoms/Form/Input.tsx +++ b/client/src/components/atoms/Form/Input.tsx @@ -23,6 +23,7 @@ interface InputProps { value?: string onChange?( event: + | any | FormEvent | ChangeEvent | ChangeEvent @@ -39,6 +40,7 @@ interface InputState { } export default class Input extends PureComponent { + hiddenDate: any public state: InputState = { isFocused: false, startDate: new Date() @@ -64,6 +66,13 @@ export default class Input extends PureComponent { this.setState({ startDate: date }) + const event = { + currentTarget: { + name: 'startDate', + value: date + } + } + this.props.onChange!(event as any) } public InputComponent = () => { @@ -157,7 +166,6 @@ export default class Input extends PureComponent {