rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

Add support for className attribute #10

Closed czerasz closed 8 years ago

czerasz commented 8 years ago

Forward the className to the <select> tag

rkit commented 8 years ago

Maybe so?

<select … {...this.props}>

In this way you can pass any properties such as class, id, data-* attributes

lexich commented 8 years ago

:+1:

czerasz commented 8 years ago

@rkit Spread Attributes is a really good idea!

rkit commented 8 years ago

Thanks! Today will release.

czerasz commented 8 years ago

@rkit cool many thanks! :-)