#How to enable children eventHandlers inside disabled tab?

8 messages · Page 1 of 1 (latest)

mossy steppe
#

Hi, i want to make tab, which contain clickable button when it is in disabled state:

rightSectionContent = (
      <ActionIcon
        onClick={() => myEventHandler({ some, args })}
      >
        <IconRestore/>
      </ActionIcon>
    );
...
<Tabs.Tab
      key={'tabId' - InstitutionTab}
      value={'institution-' + institutionId}
      rightSection={rightSectionContent}
      disabled=true
    >
      My disabled tab with button
    </Tabs.Tab>
  )

however, when tab is in disabled state, it prevents ActionIcon from executing myEventHandler. Click event is firing(checked in devtools) but nothing happening.

How can I prevent disabled Tabs.Tab not allowing ActionIcon to work normally?
Or should i avoid using disabled prop and just apply custom "disabled-tab" CSS?

final monolith
mossy steppe
final monolith
mossy steppe
mossy steppe
mossy steppe
#

Finally done for my project. Thanks for support!