Closed rafioktavian closed 3 years ago
I have code
const maxDateValue = new Date().toISOString(); <DateRangePicker maxDate={maxDateValue} autoUpdateInput={true} startDate={startDate} endDate={endDate} locale={{ format: "YYYY-MM-DD" }} onApply={onChangeDate}> <input type="text" className="form-control" value={labelDate} onChange={onChangeDate} /> </DateRangePicker>
how the solution to this problem?
You need to change your code to use the initialSettings prop. You also need to use this component as an "uncontrolled" component: https://github.com/skratchdot/react-bootstrap-daterangepicker/#documentation
initialSettings
I have code
how the solution to this problem?