mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Fixed componentWillReceiveProps options function bug (#273)
Fixes a bug which prevented you from changing the function passed to the options prop
This commit is contained in:
parent
c4cfbd4f0f
commit
d348c64f85
@ -282,7 +282,7 @@ export default class GoogleMap extends Component {
|
||||
? nextProps.options(mapPlainObjects)
|
||||
: nextProps.options;
|
||||
// remove zoom, center and draggable options as these are managed by google-maps-react
|
||||
options = omit(nextProps.options, ['zoom', 'center', 'draggable']);
|
||||
options = omit(options, ['zoom', 'center', 'draggable']);
|
||||
|
||||
if (options.hasOwnProperty('minZoom')) {
|
||||
const minZoom = this._computeMinZoom(options.minZoomOverride, options.minZoom);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user