Skip to content

Bug - SimpleSelect - An open menu still accepts selection after disabling #12711

Open

Description

@Xapollon430

Describe the problem

SimpleSelect can still change its selection after its toggle becomes disabled.

How do you reproduce the problem?

  1. Open a SimpleSelect with Apple selected.
  2. Set isDisabled to true while the menu is still open.
  3. Click Orange. Orange becomes selected and onSelect runs.

Expected behavior

Apple stays selected and onSelect does not run.

Screenshots

Watch the browser reproduction.

What is your environment?

Chromium on macOS, with the official PatternFly stylesheet. Reproduced on @patternfly/react-templates 6.7.0 and current main.

Any other information?

I am preparing a regression test and a small fix for this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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