react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Week number is highlighted when selecting the first day of the week

Open MaertHaekkinen opened this issue 1 year ago • 1 comments

Describe the bug Week number gets highlighted when selecting the first day of the week, but not when selecting any other day of the week.

To Reproduce

  1. Click on the first day of the week. image

  2. Click on any other day of the week (same or other) image

Expected behavior Week number gets highlighted for both cases or only when a range is selected - I am not 100% sure on what is the agreed behaviour, but current one seemed very odd to me.

Desktop

  • OS: Windows 10
  • Browser: Chrome
  • Version: 121.0.6167.139 (Official Build) (64-bit)

Where to test?

Codepen: https://codepen.io/MaertHaekkinen/pen/ExMQrMq

OR

https://reactdatepicker.com/ - "Display Week Numbers"

MaertHaekkinen avatar Jan 31 '24 12:01 MaertHaekkinen

Hi, I will take this issue.

Vedant767 avatar Jan 31 '24 18:01 Vedant767