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
Use the CalendarCellTrigger's data-[disabled] attribute to disable pointer events with the data-[disabled]:pointer-events-none Tailwind class.
Describe the bug
Note sure if this is actually a bug, but CalendarCellTrigger's data-[disabled] attribute is implemented as isDisabled || isOutsideView. This is problematic because it doesn't allow me to style cells differently for days outside the current month (isOutsideView), which are interactive (and change the view to that month), from cells which are disabled, and therefore not interactive (less than minValue, greater than maxValue, or for which isDateDisabled returns true).
Expected behavior
I would expected only disabled days to be affected, not days outside the current month.
Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered:
@zernonia Thanks for the suggested workaround but that won't work: that pseudo-class will not disable pointer events for cells which are disabled outside views. I want to do this :
Environment
Link to minimal reproduction
https://github.com/unovue/radix-vue/blob/v2/packages/core/src/Calendar/CalendarCellTrigger.vue#L164
Steps to reproduce
Use the
CalendarCellTrigger
'sdata-[disabled]
attribute to disable pointer events with thedata-[disabled]:pointer-events-none
Tailwind class.Describe the bug
Note sure if this is actually a bug, but
CalendarCellTrigger
'sdata-[disabled]
attribute is implemented asisDisabled || isOutsideView
. This is problematic because it doesn't allow me to style cells differently for days outside the current month (isOutsideView
), which are interactive (and change the view to that month), from cells which are disabled, and therefore not interactive (less thanminValue
, greater thanmaxValue
, or for whichisDateDisabled
returnstrue
).Expected behavior
I would expected only disabled days to be affected, not days outside the current month.
Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: