Skip to content

Commit 525c224

Browse files
committed
Cleanup for svelte-check
1 parent 6d764bc commit 525c224

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

src/lib/client/form.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ export function Form<T extends AnyZodObject, M>(
199199

200200
// If redirected, clear timers after navigating for better UX.
201201
if (!_initialized) {
202-
beforeNavigate((nav) => {
203-
if (nav.type == 'enter') return;
202+
beforeNavigate(() => {
204203
aboutToNavigate = true;
205204
});
206205

src/routes/tests/issue-235/+page.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@
5858
</form>
5959

6060
<style>
61-
.invalid {
62-
color: red;
63-
}
64-
6561
.status {
6662
color: white;
6763
padding: 4px;
@@ -82,10 +78,6 @@
8278
background-color: #ddd;
8379
}
8480
85-
a {
86-
text-decoration: underline;
87-
}
88-
8981
hr {
9082
margin-top: 4rem;
9183
}

src/routes/tests/issue-266/+page.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,6 @@
109109
background-color: #ddd;
110110
}
111111
112-
a {
113-
text-decoration: underline;
114-
}
115-
116-
hr {
117-
margin-top: 4rem;
118-
}
119-
120112
form {
121113
padding-top: 1rem;
122114
padding-bottom: 1rem;

0 commit comments

Comments
 (0)