Yes, because in the calendar you can see “1 to 11” is visible for the next month also. Can you check in selector to get some attribute which shows whether the date is active or inactive. For example Here in the screenshot you can see “1” which is repeated twice. But here one value is active and another one is inactive.
Check in selector to find an attribute for this and if you include that in the slector it will work fine.