diff --git a/src/asInput/index.jsx b/src/asInput/index.jsx index 50ef11de80..2cf7216587 100644 --- a/src/asInput/index.jsx +++ b/src/asInput/index.jsx @@ -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() {