You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let me start by saying how much I like react infinite calendar and how useful this has turned out to be. This is a life saver.
There is a minor issue here. Disabling days using "disabledDays" attribute does not work well with "weekStartsOn" attribute. Without the latter, it works fine.
I wanted to disable the weekend dates, so I initially wrote it as disabledDays = {[0, 6]} corresponding to sun and sat days. And then I wanted my week to start on Monday, so I had added
locale={{
weekStartsOn: 1
}}
This does change the week's starting day but enables clicking on sundays. It does not fully disable them, and the click eventhandler is triggered.
Hi,
Let me start by saying how much I like react infinite calendar and how useful this has turned out to be. This is a life saver.
There is a minor issue here. Disabling days using "disabledDays" attribute does not work well with "weekStartsOn" attribute. Without the latter, it works fine.
I wanted to disable the weekend dates, so I initially wrote it as
disabledDays = {[0, 6]}
corresponding to sun and sat days. And then I wanted my week to start on Monday, so I had addedThis does change the week's starting day but enables clicking on sundays. It does not fully disable them, and the click eventhandler is triggered.
Try this with having locale attribute on and off.
You can see it happening in the given sandbox.
https://codesandbox.io/s/modest-sinoussi-6s85o?file=/src/index.js:263-305
Thanks.
The text was updated successfully, but these errors were encountered: