Commit acfcdba
authored
fix: reset form inputs by default when using remote form functions (#14322)
Fixes a weird inconsistency: Full page reloads clear the form fields, but when using JS to enhance it (which happens by default) it's no longer resetting. This fixes that. If you enhance you still can decide which way you want to go.1 parent 6652939 commit acfcdba
File tree
3 files changed
+8
-2
lines changed- .changeset
- packages/kit
- src/runtime/client/remote-functions
- test/apps/basics/test
3 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1605 | 1605 | | |
1606 | 1606 | | |
1607 | 1607 | | |
| 1608 | + | |
1608 | 1609 | | |
1609 | 1610 | | |
1610 | 1611 | | |
| |||
0 commit comments