Skip to content

Commit

Permalink
fix(sign-up): add password field ref to confirm field
Browse files Browse the repository at this point in the history
  • Loading branch information
delllc committed Jul 21, 2023
1 parent 007d1a1 commit 6c0c1a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/sign-up/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ export const $form = createForm({
validateOn: ['submit'],
});

sample({
clock: $form.fields.password.changed,
target: $form.fields.confirm.validate,
});

sample({
clock: anonymousRoute.closed,
target: $form.reset,
Expand Down

0 comments on commit 6c0c1a5

Please sign in to comment.