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

How can it possible that every month start with monday?

Open Hammad-CT opened this issue 2 years ago • 4 comments

Before you start - checklist

  • [X] I followed instructions in documentation written for my React-Calendar version
  • [X] I have checked if this bug is not already reported

Description

In short! if i'am changing single month to double month and also removing extra dates from every month(extra dates are next or previous month dates, which are on current month calendar). then days names remains on its position like every month's Calendar days start from Monday, How can it possible that every month's 1st date starts from Monday as in screenshot?

Screenshot 2022-06-30 at 11 03 19 PM

Steps to reproduce

...

Expected behavior

...

Actual behavior

Screenshot 2022-06-30 at 11 03 19 PM

Additional information

No response

Environment

  • Browser (if applicable):
  • React-Calendar version:
  • React version:

Hammad-CT avatar Jun 30 '22 18:06 Hammad-CT

@wojtekmaj any help plz?

Hammad-CT avatar Jun 30 '22 18:06 Hammad-CT

I have the same issue. Seems to happen when you set both showNeighboringMonth and showFixedNumberOfWeeks to false. I want them both false though.

LouiseReid avatar Jul 05 '22 11:07 LouiseReid

Doesn't look like so: https://codesandbox.io/s/react-calendar-flags-to-false-zhcjqy

This must be a styling issue. For example if you rewrote calendar grid to be an actual CSS grid instead of flexbox, then these subtleties may be lost.

I won't be able to help any of you guys without actual code to look at.

wojtekmaj avatar Jul 05 '22 11:07 wojtekmaj

Yea, I changed it to grid styling. Thanks

LouiseReid avatar Jul 05 '22 12:07 LouiseReid