summaryrefslogtreecommitdiff
path: root/src/core/components/layouts
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-05-31 08:55:43 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-05-31 08:55:43 +0700
commit0d28dc8ff5fb8c5399e356ed6ecae4fce2019ca6 (patch)
tree51c25a7c508b30e974551c69680a10a76470c147 /src/core/components/layouts
parent62d2edfa5ae62cd8faa2d0322ddfd5dfa6ad2d2e (diff)
<hafid> fix repeat-order
Diffstat (limited to 'src/core/components/layouts')
-rw-r--r--src/core/components/layouts/BasicLayout.jsx2
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);