Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menubar.Sub cannot be disabled #307

Closed
SkyfallWasTaken opened this issue Feb 4, 2024 · 0 comments · Fixed by #309
Closed

Menubar.Sub cannot be disabled #307

SkyfallWasTaken opened this issue Feb 4, 2024 · 0 comments · Fixed by #309

Comments

@SkyfallWasTaken
Copy link

SkyfallWasTaken commented Feb 4, 2024

Describe the bug

<Menubar.Sub disabled={true}>
  <Menubar.SubTrigger>Find</Menubar.SubTrigger>
  <Menubar.SubContent>
    <Menubar.Item>Find...</Menubar.Item>
    <Menubar.Item>Find Next</Menubar.Item>
    <Menubar.Item>Find Previous</Menubar.Item>
  </Menubar.SubContent>
</Menubar.Sub>

Here, the Menubar.Sub should be disabled, according to the Bits UI documentation, but it isn't, and all of the items in the submenu can be clicked and fire on:click events.

Reproduction

https://stackblitz.com/edit/vitejs-vite-ajwdjg?file=src%2FApp.svelte

Logs

No response

System Info

System:
    OS: Linux 6.5 Zorin OS 17 17
    CPU: (8) x64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
    Memory: 9.34 GB / 15.49 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 21.5.0 - ~/.pkgx/nodejs.org/v21.5.0/bin/node
    npm: 10.2.5 - ~/.pkgx/npmjs.com/v10.2.5/bin/npm
    bun: 1.0.25 - ~/.bun/bin/bun
  npmPackages:
    @sveltejs/kit: ^2.0.0 => 2.5.0 
    bits-ui: ^0.16.0 => 0.16.0 
    svelte: ^4.2.7 => 4.2.9

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant