diff --git a/src/DTableSearchInput/index.js b/src/DTableSearchInput/index.js index dbc30f40..2fcdc65f 100644 --- a/src/DTableSearchInput/index.js +++ b/src/DTableSearchInput/index.js @@ -85,6 +85,17 @@ class DtableSearchInput extends Component { ); }; + renderExactMatch = () => { + const { components = {} } = this.props; + const { ExactMatchIndicator } = components; + if (React.isValidElement(ExactMatchIndicator)) { + return ExactMatchIndicator; + } else if (isFunction(ExactMatchIndicator)) { + return ; + } + return null; + }; + render() { const { placeholder, autoFocus, className, onKeyDown, disabled, style } = this.props; const { searchValue } = this.state; @@ -106,6 +117,7 @@ class DtableSearchInput extends Component { style={style} /> {this.renderClear()} + {this.renderExactMatch()} ); }