Skip to content

Commit 9f47a54

Browse files
authored
Update src/components/ContextMenu/ContextMenu.react.js
Signed-off-by: Manuel <[email protected]>
1 parent 44b1036 commit 9f47a54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/ContextMenu/ContextMenu.react.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const getPositionToFitVisibleScreen = (
1616
mainItemCount = 0,
1717
subItemCount = 0
1818
) => {
19-
if (!ref.current) return;
19+
if (!ref.current) {
20+
return;
21+
}
2022

2123
const elBox = ref.current.getBoundingClientRect();
2224
const menuHeight = elBox.height;

0 commit comments

Comments
 (0)