From 3818619cad918d1947c6aa0c3975f58ffdab6ddc Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 29 Jan 2021 16:46:31 -0800 Subject: [PATCH] fix(googleMap): do not omit draggable in shouldComponentUpdate --- src/google_map.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/google_map.js b/src/google_map.js index 17da6316..3764eb60 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -302,12 +302,9 @@ class GoogleMap extends Component { } shouldComponentUpdate(nextProps, nextState) { - // draggable does not affect inner components return ( - !shallowEqual( - omit(this.props, ['draggable']), - omit(nextProps, ['draggable']) - ) || !shallowEqual(this.state, nextState) + !shallowEqual(this.props, nextProps) || + !shallowEqual(this.state, nextState) ); }