Skip to content

rows not respected for textarea form element #2254

Closed
@tkram01

Description

@tkram01

The following textarea component ignores the 'rows' attribute. Using the default bootstrap code works.
<textarea class="form-control" rows="6"></textarea>

          <Form horizontal>
                <FormGroup controlId="formHorizontalEmail">
                    <Col componentClass={ControlLabel} sm={2}>
                        PDB Code
                    </Col>
                    <Col sm={10}>
                        <FormControl type="text" placeholder="PDB Code" maxLength={4} cols={4}/>
                    </Col>
                </FormGroup>

                <FormGroup controlId="formHorizontalPassword">
                    <Col componentClass={ControlLabel} sm={2}>
                        Description
                    </Col>
                    <Col sm={10}>
                        <FormControl type="textarea" rows={6} maxLength={4000} placeholder="Description"/>
                    </Col>
                </FormGroup>

                <FormGroup>
                    <Col smOffset={2} sm={10}>
                        <Button type="submit">
                            Submit
                        </Button>
                    </Col>
                </FormGroup>
            </Form>

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