Skip to content

Commit

Permalink
fix: InfoWindow.shouldFocus doesn't work with false as value (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freundschaft committed Mar 26, 2024
1 parent 705d1b7 commit 2f4b508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/info-window.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const InfoWindow = (props: PropsWithChildren<InfoWindowProps>) => {
openOptions.anchor = anchor;
}

if (shouldFocus) {
if (shouldFocus !== undefined) {
openOptions.shouldFocus = shouldFocus;
}

Expand Down

0 comments on commit 2f4b508

Please sign in to comment.