Skip to content

[Bug]: igc-buttongroup single selection doesn't behave well when no toggle button values are set #2229

@kdinev

Description

@kdinev

Which component(s) are affected?

Button group

Description

When using a button group with toggle buttons without values set, the selection behavior is select -> deselect -> select -> deselect, regardless of whether different buttons are clicked for each selection.

Reproduction

  1. Open https://codesandbox.io/p/devbox/sweet-surf-qrt5lv?workspaceId=ws_Jz7URzgV8pmLLyu4N6DneK
  2. Select the first button
  3. Select the second button

Workaround

Works correctly if values are set. Documentation doesn't state required values anywhere, nor does the behavior of the igx-buttongroup require values.

Is this a regression?

No or unsure. This never worker, or I haven't tried before.

Affected versions

7.1.3

Browser/OS/Node environment

Browser: Edge
OS: Windows
Node: 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    🆕 status: newThe issue is new and will be reviewed when somebody picks it up.bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions