nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - `isDisabled` does not disable dropdown

Open pdevito3 opened this issue 1 year ago • 2 comments

NextUI Version

2.2.9

Describe the bug

As described in the docs, adding an isDisabled prop and setting it to true does not disable a dropdown

Your Example Website or App

https://stackblitz.com/edit/stackblitz-starters-xzrmx5?file=src%2FApp.tsx

Steps to Reproduce the Bug or Issue

  1. Create a dropdown
  2. Add isDisabled prop
  3. Use the dropdown

Expected behavior

the dropdown should be disabled

Screenshots or Videos

No response

Operating System Version

MacOS

Browser

Firefox

pdevito3 avatar Jan 23 '24 01:01 pdevito3

So the intent here is that Trigger components, such as MenuTrigger, when disabled, will not show their associated menu.

From the other ticket. If this is the case my repro link will show that not happening. I'm fine adding my own disabled state and such but adding the prop should not let the menu open I would think? @Alex20180512

pdevito3 avatar Jan 23 '24 21:01 pdevito3

So the intent here is that Trigger components, such as MenuTrigger, when disabled, will not show their associated menu.

From the other ticket. If this is the case my repro link will show that not happening. I'm fine adding my own disabled state and such but adding the prop should not let the menu open I would think? @Alex20180512

I think so. But I'm not sure what with that.

alex-reinfoce avatar Jan 23 '24 21:01 alex-reinfoce

Hey all! thanks for the report! Yes, I could successfully reproduce the bug in my local. Cheers!

kuri-sun avatar Mar 03 '24 00:03 kuri-sun