Skip to content

Commit 82561b0

Browse files
committed
Remove deprecated options prop
1 parent 6e97740 commit 82561b0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class Geocoder extends Component {
4545
language,
4646
filter,
4747
localGeocoder,
48-
options,
4948
onInit,
5049
position
5150
} = this.props
@@ -64,8 +63,7 @@ class Geocoder extends Component {
6463
limit,
6564
language,
6665
filter,
67-
localGeocoder,
68-
...options
66+
localGeocoder
6967
})
7068
this.subscribeEvents()
7169

@@ -219,8 +217,7 @@ class Geocoder extends Component {
219217
onLoading: PropTypes.func,
220218
onResults: PropTypes.func,
221219
onResult: PropTypes.func,
222-
onError: PropTypes.func,
223-
options: PropTypes.object // deprecated and will be removed in v2
220+
onError: PropTypes.func
224221
}
225222

226223
static defaultProps = {

0 commit comments

Comments
 (0)