diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-05-31 08:55:43 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-05-31 08:55:43 +0700 |
| commit | 0d28dc8ff5fb8c5399e356ed6ecae4fce2019ca6 (patch) | |
| tree | 51c25a7c508b30e974551c69680a10a76470c147 /src/core/components/layouts/BasicLayout.jsx | |
| parent | 62d2edfa5ae62cd8faa2d0322ddfd5dfa6ad2d2e (diff) | |
<hafid> fix repeat-order
Diffstat (limited to 'src/core/components/layouts/BasicLayout.jsx')
| -rw-r--r-- | src/core/components/layouts/BasicLayout.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/components/layouts/BasicLayout.jsx b/src/core/components/layouts/BasicLayout.jsx index 2998fa63..81f8b41f 100644 --- a/src/core/components/layouts/BasicLayout.jsx +++ b/src/core/components/layouts/BasicLayout.jsx @@ -54,6 +54,8 @@ const BasicLayout = ({ children }) => { useEffect(() => { const handleMouseOut = (event) => { + + if (!buttonRef.current) return; const rect = buttonRef.current.getBoundingClientRect(); if (event.clientY <= 0) { setButtonPosition(rect); |
