File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ class Circle extends Component {
74
74
}
75
75
76
76
onCircleCallback ( callback , event ) {
77
- this . props [ callback ] ( this . circle , event ) ;
77
+ if ( this . props [ callback ] ) {
78
+ this . props [ callback ] ( this . circle , event ) ;
79
+ }
78
80
}
79
81
80
82
renderCircle ( props ) {
@@ -158,8 +160,8 @@ Circle.defaultProps = {
158
160
onMouseUp : ( circle ) => { } ,
159
161
onRadiusChanged : ( circle ) => { } ,
160
162
onRightClick : ( circle ) => { } ,
161
- onVisibleChange : ( circle ) => { } ,
162
- onZIndexChange : ( circle ) => { } ,
163
+ onVisibleChanged : ( circle ) => { } ,
164
+ onZIndexChanged : ( circle ) => { } ,
163
165
} ;
164
166
165
167
export default Circle ;
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ class Marker extends Component {
68
68
}
69
69
70
70
onMarkerCallback ( callback , event ) {
71
- this . props [ callback ] ( this . marker , event ) ;
71
+ if ( this . props [ callback ] ) {
72
+ this . props [ callback ] ( this . marker , event ) ;
73
+ }
72
74
}
73
75
74
76
renderMarker ( props ) {
You can’t perform that action at this time.
0 commit comments