Search code examples
javascriptreactjscheckboxfrontendreact-bootstrap

React Bootstrap checkbox issue: Form.Check working as a text input instead of a checkbox


Im using react bootstrap to create a form on my app. I used the boilerplate to create checkbox inputs, but for some reason, its working as a text input instead of a checkbox.

enter image description here

I have no idea why this is happening. Theres no error on the console.

I already imported the bootstrap css styles to the project too, so its not that.

Can somebody help?


Solution

  • I figured it out. Its type="checkbox" instead of type="check".

    Cant believe i spent almost 2 hours trying to fix this.