eManPrague / frui.ts

Pragmatic MVVM frontend framework
MIT License
14 stars 5 forks source link

Support for `controlId` inside Input component #57

Closed kopecmi8 closed 2 years ago

kopecmi8 commented 2 years ago

Original react bootstap form control component has support for controlId attribute.

Its usefful when you need to deal with accesibility and want to set FOR and ID pair.

<Form.Group  controlId="formEmail">
    <Form.Label>Email</Form.Label>
    <Form.Control type="email"  />
  </Form.Group>

https://react-bootstrap.github.io/components/forms/#forms

Frui.ts Input component this breaks and you have to set ID for input element separetly.

kopecmi8 commented 2 years ago

Sorry, my mistake. Problem were somewhere else. ControlId works as expected.