question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning about controlId

See original GitHub issue

Has 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:closed
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
wehriamcommented, Jun 3, 2016

Should be resolved in 3.1.0

0reactions
AndrasEcommented, May 12, 2022

Had it today 😦

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found