fix(progress-step): forward click event

This commit is contained in:
Eric Liu 2020-09-14 06:43:27 -07:00
commit 6cb877ede1
2 changed files with 5 additions and 1 deletions

View file

@ -26,7 +26,10 @@
<ProgressStep <ProgressStep
label="First step" label="First step"
description="Step 1: Getting started with Carbon Design System" description="Step 1: Getting started with Carbon Design System"
secondaryLabel="Optional label" /> secondaryLabel="Optional label"
on:click="{() => {
console.log('click');
}}" />
<ProgressStep <ProgressStep
label="Second step with tooltip" label="Second step with tooltip"
description="Step 2: Getting started with Carbon Design System" description="Step 2: Getting started with Carbon Design System"

View file

@ -77,6 +77,7 @@
tabindex="{!current && !disabled ? '0' : '-1'}" tabindex="{!current && !disabled ? '0' : '-1'}"
class:bx--progress-step-button="{true}" class:bx--progress-step-button="{true}"
class:bx--progress-step-button--unclickable="{current}" class:bx--progress-step-button--unclickable="{current}"
on:click
on:click="{() => { on:click="{() => {
change(step.index); change(step.index);
}}" }}"