[v4] Get value of the datepicker react item

Blockquote
<ListInput
label=“Birth date”
type=“datepicker”
placeholder=“Your birth day”
required
value={this.state.birth_day}
onInput={(e) => this.setState({birth_day: e.target.value})}>

Blockquote
console.log( this.state.birth_day); --> Undefined.

This does not add the value of datepicker into state.

Any ideas?

Thank you all

<ListInput
  ...
  onCalendarChange={(value) => this.setState({birth_day: value})}
>
1 Like