Skip to content

Commit ae35b15

Browse files
author
William Fendler
authored
Fix marker PropTypes to allow bool *or* object (#116)
1 parent 3c45473 commit ae35b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class Geocoder extends PureComponent {
258258
localGeocoder: PropTypes.func,
259259
reverseGeocode: PropTypes.bool,
260260
enableEventLogging: PropTypes.bool,
261-
marker: PropTypes.bool,
261+
marker: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
262262
render: PropTypes.func,
263263
getItemValue: PropTypes.func,
264264
position: PropTypes.oneOf(VALID_POSITIONS),

0 commit comments

Comments
 (0)