Skip to content

Commit

Permalink
fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriaMaltseva committed Dec 2, 2024
1 parent c0fd969 commit 82eb638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/src/core/components/drag-and-drop/draggable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Draggable (props: DraggableProps): React.JSX.Element | null {
{ ...Child.props }
/>
</div>
), [])
), [[setNodeRef, listeners, attributes, Child.props, Component]])
}

const DraggableMemo = React.memo(Draggable)
Expand Down
2 changes: 1 addition & 1 deletion assets/js/src/core/components/focal-point/focal-point.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const FocalPoint = ({ activationConstraint, children }: FocalPointProps):
if (!isActive && !isLoading && containerRef.current !== null) {
onToggleOff()
}
}, [isActive])
}, [isActive, isLoading, containerRef])

return (
<DndContext
Expand Down

0 comments on commit 82eb638

Please sign in to comment.