arnthor3 / react-bootstrap-toggle

Bootstrap-toggle without the JQuery dependencies
Other
54 stars 16 forks source link

Impossibility of define an ID for React bootstrap toggle #8

Closed edigley closed 7 years ago

edigley commented 7 years ago

When trying to define an ID for the react bootstrap toggle (passing the usual id property for JSX tag), the rendered element doesn't have an id property. After inspecting the generated html element on the browser, we can see that the defined id is ignored. As this approach of defining a custom id for elements is very important for later identifying the element, I would like to know if it is in the roadmap of this project to support the receiving of the id.

arnthor3 commented 7 years ago

Yes, of course. Do you want to do a pull request?

arnthor3 commented 7 years ago

fixed in version 2.0.5