blueprint
blueprint copied to clipboard
[DateRangeInput] Input is blank when choosing date
Environment
Package version(s): @blueprintjs/core 3.49.1
Steps to reproduce
- Use this setup, with any
formatDateandparseDate.
<DateRangeInput
value={[from, to ]}
formatDate={formatDate}
parseDate={parseDate}
onChange={(date) => onStateChange([ date[0]?.toISOString(), date[1]?.toISOString() ])} />
Actual behavior
https://user-images.githubusercontent.com/16732818/171377494-7dad2f8c-44e7-4a45-8dac-2576166ff356.mov
Expected behavior
The to value should not be blank on date click.
Possible solution
To fix this issue i don't use value props anymore, but i would like understand why, when we use value we have this behaviour.
Is it possible to reproduce this in a code sandbox? Also please include the version of @blueprintjs/datetime you are using, as the core package version is insufficient. Lastly, please try upgrading to the latest Blueprint, as you are many versions behind.