Skip to content

Commit

Permalink
Merge pull request #26 from none23/patch-1
Browse files Browse the repository at this point in the history
Fix data-completed
  • Loading branch information
damianricobelli authored Aug 19, 2024
2 parents 9f67e9a + bf9694c commit 546d510
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/late-otters-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stepperize/react": patch
---

Fix data-completed
2 changes: 1 addition & 1 deletion packages/react/src/stepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const Stepper = <
"data-step": step.id,
"data-optional": step.isOptional ?? false,
"data-disabled": step.isDisabled ?? false,
"data-completed": currentStep.id > step.id,
"data-completed": counter > steps.findIndex(s => s.id === id),
"data-active": isActive,
"data-last": isLastStep,
},
Expand Down

0 comments on commit 546d510

Please sign in to comment.