Skip to content

Ability to disable certain children in a trigger #3639

@qthedoc

Description

@qthedoc

Feature request

Summary

It would be nice to disable certain nested child elements in a trigger. for example if the trigger has a menu in it. Encountered with Tabs triggers.

Examples in other libraries

I'm sure there are many ways to implement this. you could have a set of props I can pass to disable a child of a trigger?

Motivation

E.g. I ran across this when using Tabs to make a GoogleSheet style interface where each tab contained the title of the table but also a trigger that opened a Menu with options for that tab (like delete, rename). Ideally you can open the menu of a tab without selected it as the 'active tab'. I tried many workarounds like stopPropagation and preventDefault in the menu trigger but then the Menu wouldn't open. I ended up just not using the Tabs components and going DIY which wasn't too bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: tabsChanges related to the tabs component.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions