JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.75k stars 426 forks source link

Fix bug that prevented null from being passed as a drawingMode #3290

Closed andycansdale closed 9 months ago

andycansdale commented 10 months ago

It was not possible to cancel the current drawingMode (polygon, etc) by passing null. The condition inside the useEffect only accepted truthy values for drawingMode, making it impossible to exit a selected drawingMode.