Skip to content

Warning about controlId #15

Closed
Closed
@shir

Description

@shir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions