-
Notifications
You must be signed in to change notification settings - Fork 778
Open
Labels
Description
Hello.
Currently it appears there is no way to add an html attribute to the underlying markup that is generated by the built-in filters such as <SelectFilter>
.
My use-case would be adding an id
, data
, or aria
attribute to the html elements such as a <select>
.
Attributes are passed to the component in the JSX.
<SelectFilter ref='selectFilter' { ...this.props.filter } |
But they aren't shared with the HTML elements.
react-bootstrap-table/src/filters/Select.js
Lines 98 to 104 in 281db99
<select ref='selectInput' | |
style={ this.props.style } | |
className={ selectClass } | |
onChange={ this.filter } | |
defaultValue={ (this.props.defaultValue !== undefined) ? this.props.defaultValue : '' } > | |
{ this.getOptions() } | |
</select> |
I'm happy to submit a PR if you agree with the use.