fix(tabs): forward click event to Tab

This commit is contained in:
Eric Liu 2021-02-03 05:56:51 -08:00
commit fed83f8bf4
4 changed files with 4 additions and 0 deletions

View file

@ -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);