diff --git a/packages/react-bootstrap-table2-toolkit/src/search/SearchBar.js b/packages/react-bootstrap-table2-toolkit/src/search/SearchBar.js index f51f09c..9ade309 100644 --- a/packages/react-bootstrap-table2-toolkit/src/search/SearchBar.js +++ b/packages/react-bootstrap-table2-toolkit/src/search/SearchBar.js @@ -54,20 +54,25 @@ class SearchBar extends React.Component { const { className, style, - placeholder + placeholder, + tableId, } = this.props; return ( - this.input = n } - type="text" - style={ style } - onKeyUp={ () => this.onKeyup() } - onChange={ this.onChangeValue } - className={ `form-control ${className}` } - value={ this.state.value } - placeholder={ placeholder || SearchBar.defaultProps.placeholder } - /> + ); } } @@ -78,7 +83,8 @@ SearchBar.propTypes = { placeholder: PropTypes.string, style: PropTypes.object, delay: PropTypes.number, - searchText: PropTypes.string + searchText: PropTypes.string, + tableId: PropTypes.string }; SearchBar.defaultProps = { @@ -86,7 +92,8 @@ SearchBar.defaultProps = { style: {}, placeholder: 'Search', delay: 250, - searchText: '' + searchText: '', + tableId: 0 }; export default SearchBar;