Skip to content

Commit

Permalink
Merge pull request #205 from edx/replace-includes
Browse files Browse the repository at this point in the history
fix(as-input): replace includes with indexOf
  • Loading branch information
jaebradley authored Apr 4, 2018
2 parents d8a524f + 914fd3b commit dd3949e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asInput/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const asInput = (WrappedComponent, inputType = undefined, labelFirst = true) =>
}

hasDangerTheme() {
return this.props.themes.includes('danger');
return this.props.themes.indexOf('danger') >= 0;
}

isGroupedInput() {
Expand Down

0 comments on commit dd3949e

Please sign in to comment.