Skip to content

[Select] - Disabled SelectItem fires click events #3683

@dimafirsov

Description

@dimafirsov

Bug report

STR

  1. Use the Stackblitz link below to proceed to the example where the issue can be reproduced
  2. Click the Radix Select to pop the content open
  3. Attempt to select the disabled item with the name Item 2
  4. Observe a result

Current Behavior

Alert is triggered. Looks like the disabled SelectItem is clickable (onClick fired)

Expected behavior

Disabled SelectItem should block users from interacting with it.
See a native select example below the Radix one.

Reproducible example

Stackblitz

Suggested fix

SelectItem to have pointer-events: none; when disabled

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