From 934520a6314e4efc1638bb2c356de110f789b4d5 Mon Sep 17 00:00:00 2001 From: Marta Kowalska Date: Tue, 28 Oct 2025 09:56:45 +0000 Subject: [PATCH] v2.3.3 --- package-lock.json | 4 ++-- package.json | 2 +- src/components/ContextMenu.jsx | 2 ++ src/components/Fullscreen.jsx | 3 ++- src/themes/Willow.jsx | 2 +- src/themes/WillowDark.jsx | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 86b15df..05e497f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@svar-ui/react-gantt", - "version": "2.3.2", + "version": "2.3.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@svar-ui/react-gantt", - "version": "2.3.2", + "version": "2.3.3", "license": "GPL-3.0", "dependencies": { "@svar-ui/gantt-data-provider": "2.3.0", diff --git a/package.json b/package.json index 3bf48e0..62180c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@svar-ui/react-gantt", - "version": "2.3.2", + "version": "2.3.3", "description": "A customizable, high-performance React Gantt chart component for building project timelines.", "productTag": "gantt", "type": "module", diff --git a/src/components/ContextMenu.jsx b/src/components/ContextMenu.jsx index 83172ba..754f35a 100644 --- a/src/components/ContextMenu.jsx +++ b/src/components/ContextMenu.jsx @@ -29,6 +29,7 @@ const ContextMenu = forwardRef(function ContextMenu( at = 'point', children, onClick, + css }, ref, ) { @@ -161,6 +162,7 @@ const ContextMenu = forwardRef(function ContextMenu( onClick={menuAction} at={at} ref={menuRef} + css={css} /> {typeof children === 'function' ? children() : children} diff --git a/src/components/Fullscreen.jsx b/src/components/Fullscreen.jsx index 821447e..551be56 100644 --- a/src/components/Fullscreen.jsx +++ b/src/components/Fullscreen.jsx @@ -25,7 +25,8 @@ function Fullscreen({ hotkey = null, children }) { }); useEffect(() => { - hotkeys.subscribe(v => v.add(hotkey, toggleFullscreen.current)); + if(hotkey) + hotkeys.subscribe(v => v.add(hotkey, toggleFullscreen.current)); }, []); useEffect(() => { diff --git a/src/themes/Willow.jsx b/src/themes/Willow.jsx index 9ded6b4..429ae04 100644 --- a/src/themes/Willow.jsx +++ b/src/themes/Willow.jsx @@ -3,7 +3,7 @@ import './Willow.css'; function Willow({ fonts = true, children }) { return children ? ( - {children()} + {children} ) : ( ); diff --git a/src/themes/WillowDark.jsx b/src/themes/WillowDark.jsx index 4321a4a..0d56b58 100644 --- a/src/themes/WillowDark.jsx +++ b/src/themes/WillowDark.jsx @@ -3,7 +3,7 @@ import './WillowDark.css'; export default function WillowDark({ fonts = true, children }) { if (children) { - return {children()}; + return {children}; } else { return ; }