Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const Popup = forwardRef<PopupActions, PopupProps>(
// set Position
const setPosition = () => {
if (isModal || !isOpen) return;
if (!triggerRef?.current || !triggerRef?.current || !contentRef?.current)
if (!triggerRef?.current || !contentRef?.current)
return; /// show error as one of ref is undefined
const trigger = triggerRef.current.getBoundingClientRect();
const content = contentRef.current.getBoundingClientRect();
Expand Down