arfedulov / semantic-ui-calendar-react

Datepicker react component based on semantic-ui-react components
https://arfedulov.github.io/semantic-ui-calendar-react/
MIT License
260 stars 92 forks source link

DatesRangeInput: fix initializeWith #247

Open dorinsharashov opened 1 year ago

dorinsharashov commented 1 year ago

According to the code, initializeWith should be minDateParsed or maxDateParsed is case initialDate is not defined. But, according to operators precedence, the current condition will be ((!initialDate && minDateParsed) || maxDateParsed) while it should be (!initialDate && (minDateParsed || maxDateParsed))