Warning about controlId
See original GitHub issueHas next warning in console
Warning: `controlId` is ignored on `<FormControl>` when `id` is specified.
My code:
<FormGroup controlId="start_date">
<Col componentClass={ControlLabel} sm={3}>
Start date
</Col>
<Col sm={9}>
<DatePicker ref="startDateInput" />
</Col>
</FormGroup>
I know I may remove controlId
prop form FormGroup
, but in this case how I may assign label for input? I want user to be able to click on label to make input in focus.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
what is a controlId in react-bootstrap - Stack Overflow
I was just going through the React-bootstrap form what is the use of controlId is it similar to name we use in legacy...
Read more >The <FormControl> component renders a ... - React-Bootstrap
controlId. string. Sets id on <FormControl> and htmlFor on <FormGroup.Label> . validationState. one of: 'success' , 'warning' , 'error' , null.
Read more >WARNING: control ID was not declared...?? - Vi-Control
This happens when I "Apply" the script, as well when I move the controls, only the "line number" changes. The control ID (%Knb_ID)...
Read more >Script Warning: control ID was not declared - Native Instruments
I used it for having default displayed values on some labels when the script is loaded. everything works with no problem or script...
Read more >Weird warnings, probably not related to the task but I don't ...
While playing around with Sprite Shape for snow boarder, I've got some weird warnings. “GetControlID at event keyUp returns a controlID different from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be resolved in
3.1.0
Had it today 😦