Skip to content

Document that ToggleButtonGroup doesn't work when Bootstrap JS is present #2774

@spiroski

Description

@spiroski

This is my code:

<ToggleButtonGroup
    name="eventType"
    type="radio"
    value={this.state.eventType}
    onChange={(eventType) => this.setState({eventType})}>
    <ToggleButton bsStyle="default-washed"
                  value="business">
        Business
    </ToggleButton>
    <ToggleButton bsStyle="default-washed"
                  value="leisure">Leisure
    </ToggleButton>
</ToggleButtonGroup>

The state is not being changed. However the selected value in the component itself changes as the active button changes. I've tested other places as well. This happens after I've updated from 0.31.0 to 0.31.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions