mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
refactor(progress-indicator): make currentIndex reactive, add preventChangeOnClick
This commit is contained in:
parent
350aad83e0
commit
4113ae95da
6 changed files with 134 additions and 74 deletions
|
@ -80,6 +80,7 @@
|
|||
class:bx--progress-step-button--unclickable="{current}"
|
||||
on:click
|
||||
on:click="{() => {
|
||||
if (!step.complete) return;
|
||||
change(step.index);
|
||||
}}"
|
||||
on:mouseover
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue