mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 09:51:36 +00:00
fix(progress-step): forward click event
This commit is contained in:
parent
3202f39a4f
commit
6cb877ede1
2 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,10 @@
|
|||
<ProgressStep
|
||||
label="First step"
|
||||
description="Step 1: Getting started with Carbon Design System"
|
||||
secondaryLabel="Optional label" />
|
||||
secondaryLabel="Optional label"
|
||||
on:click="{() => {
|
||||
console.log('click');
|
||||
}}" />
|
||||
<ProgressStep
|
||||
label="Second step with tooltip"
|
||||
description="Step 2: Getting started with Carbon Design System"
|
||||
|
|
|
@ -77,6 +77,7 @@
|
|||
tabindex="{!current && !disabled ? '0' : '-1'}"
|
||||
class:bx--progress-step-button="{true}"
|
||||
class:bx--progress-step-button--unclickable="{current}"
|
||||
on:click
|
||||
on:click="{() => {
|
||||
change(step.index);
|
||||
}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue