mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
fix(tabs): forward click event to Tab
This commit is contained in:
parent
c2f006e40b
commit
fed83f8bf4
4 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
|||
class:bx--tabs__nav-item--disabled="{disabled}"
|
||||
class:bx--tabs__nav-item--selected="{selected}"
|
||||
{...$$restProps}
|
||||
on:click|preventDefault
|
||||
on:click|preventDefault="{() => {
|
||||
if (!disabled) {
|
||||
update(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue