Skip to content

Commit

Permalink
Bugfix: bounds update in ImageOverlay (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwonyo committed Feb 27, 2023
1 parent 8880ab5 commit 5a87b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-leaflet/src/ImageOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const ImageOverlay = createLayerComponent<
},
function updateImageOverlay(overlay, props, prevProps) {
updateMediaOverlay(overlay, props, prevProps)
if (props.bounds !== props.bounds) {
if (props.bounds !== prevProps.bounds) {
const bounds =
props.bounds instanceof LatLngBounds
? props.bounds
Expand Down

0 comments on commit 5a87b5c

Please sign in to comment.