Skip to content
This repository was archived by the owner on Dec 23, 2022. It is now read-only.

Commit 39bba4f

Browse files
committed
Remove Array.prototype.find to support IE11.
#105
1 parent 46c034f commit 39bba4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChipInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class ChipInput extends React.Component {
307307
}
308308
}
309309

310-
if (!chips.find((c) => c[this.props.dataSourceConfig.value] === chip[this.props.dataSourceConfig.value])) {
310+
if (!chips.some((c) => c[this.props.dataSourceConfig.value] === chip[this.props.dataSourceConfig.value])) {
311311
if (this.props.value) {
312312
if (this.props.onRequestAdd) {
313313
this.props.onRequestAdd(chip)

0 commit comments

Comments
 (0)