picker icon indicating copy to clipboard operation
picker copied to clipboard

Support for pickerValue (similar to defaultPickerValue)

Open randdusing opened this issue 4 years ago • 0 comments

Howdy,

It would be nice if the displayed month could be better controlled to prevent situations like below when using the range picker:

  1. Assume the start and end dates are currently 2021-01-01
  2. Open picker to select start date
  3. Click previous month 12 times
  4. Select 2020-01-01
  5. My code sets defaultPickerValue to [2020-01-01, 2020-01-01]
  6. Panel now "focuses" back to 2021-01-01 for choosing the start date

Now I have click previous month 12 times again to select 2020-01-01 as the end date too

Similar issue was logged in Ant Design: https://github.com/ant-design/ant-design/issues/15360

randdusing avatar Sep 03 '21 14:09 randdusing