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))
According to the code,
initializeWith
should beminDateParsed
ormaxDateParsed
is caseinitialDate
is not defined. But, according to operators precedence, the current condition will be((!initialDate && minDateParsed) || maxDateParsed)
while it should be(!initialDate && (minDateParsed || maxDateParsed))