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?