Skip to content

Commit 1e3cb1d

Browse files
TommertomTommertom
Tommertom
authored and
Tommertom
committed
Demo app update - forms
1 parent 21e9281 commit 1e3cb1d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

demo-app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"dev": "vite dev",
1212
"build": "vite build",
1313
"preview": "vite preview",
14+
"deploy": "vite build && firebase deploy",
1415
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1516
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1617
"lint": "prettier --plugin-search-dir . --check . && eslint .",
@@ -44,4 +45,4 @@
4445
"localforage": "^1.10.0",
4546
"zod": "^3.20.6"
4647
}
47-
}
48+
}

demo-app/static/assets/src/components/Inputs/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</ion-header>
5959

6060
<ion-content fullscreen class="ion-padding">
61-
<form use:enhance={{ form, schema }} id="accountform">
61+
<form use:enhance={{ form, schema }} id="accountform" on:submit={submit}>
6262
<ion-list lines="full" class="ion-no-margin ion-no-padding">
6363
<ion-item class:ion-invalid={$form?.errors?.firstName}>
6464
<ion-label position="stacked">

demo-app/static/assets/src/components/Inputs/spa-enhance.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ export function validateField(ev) {
7575
newStatus.success = false;
7676
newStatus.validate = current_validate_function
7777

78-
console.log('Found error', name, value)
79-
8078
return newStatus
8179
})
8280
}

0 commit comments

Comments
 (0)