react-day-picker icon indicating copy to clipboard operation
react-day-picker copied to clipboard

Bug: Home and End keyboard buttons does not take weekStartsOn into consideration

Open apdrsn opened this issue 3 years ago • 0 comments

Bug description

Thank you very much for this lovely day picker 👍 In https://github.com/gpbl/react-day-picker/issues/1279 would it be possible to take weekStartsOn into consideration? I am starting the week on Mondays. When I press home button it would take me to the Sunday before and end button will take me to Saturday.

To reproduce

CodeSandbox

Steps

  1. Open CodeSandbox
  2. Click on a date
  3. Press home on keyboard
  4. Selected date will be Sunday before
  5. Press end on keyboard
  6. Selected date will be Saturday after

Expected behavior

When weekStartsOn is fx. Monday home button should take you to Monday. When weekStartsOn is fx. Monday end button should take you to Sunday.

Again, thanks :)

apdrsn avatar Jul 29 '22 12:07 apdrsn