Skip to content

Commit 99edbeb

Browse files
Revert "fix: rerender overlay on draggable prop change for correct drag implementation"
1 parent 1273107 commit 99edbeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/map/overlay-view.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const OverlayView = ({
2828
// This fixes the issue where the overlay is not updated when the position changes.
2929
const childrenProps = useMemoCompare(
3030
children?.props as any,
31-
(prev: { lat: any; lng: any; draggable: boolean }, next: { lat: any; lng: any; draggable: boolean }) =>
32-
prev && prev.lat === next.lat && prev.lng === next.lng && prev.draggable === next.draggable; ,
31+
(prev: { lat: any; lng: any }, next: { lat: any; lng: any }) =>
32+
prev && prev.lat === next.lat && prev.lng === next.lng,
3333
)
3434

3535
useEffect(() => {

0 commit comments

Comments
 (0)