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
Considering the fact that repainting (by calling paint() again) doesn't update the theme (which is an issue in and of itself),
I would like an option that does not set the data-theme attribute at all so that it can be determined by the Tailwind theme provider what styles to apply to the heatmap.
For now, I have to use this workaround:
).then(() => (cal.current as any).calendarPainter.root?.attr('data-theme', null))
The text was updated successfully, but these errors were encountered:
useEffect(() => {
if (prevThemeMode.current !== themeMode) {
// there is no built in way to dynamically update the theme, and we don't want to destroy/repaint the entire calendar as that leads to some odd behaviors
// @ts-ignore
calInstance.calendarPainter.root?.attr('data-theme', themeMode);
prevThemeMode.current = themeMode;
}
}, [themeMode, prevThemeMode]);
Considering the fact that repainting (by calling
paint()
again) doesn't update the theme (which is an issue in and of itself),I would like an option that does not set the
data-theme
attribute at all so that it can be determined by the Tailwind theme provider what styles to apply to the heatmap.For now, I have to use this workaround:
).then(() => (cal.current as any).calendarPainter.root?.attr('data-theme', null))
The text was updated successfully, but these errors were encountered: