mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-10-23 03:27:27 +09:00
After a successful Form submission, a visible Form returns to its authored field defaults. The newly inserted Form starts blank, so visitors can send another message without clearing the previous one. ## Checklist - [x] Call the browser's Form reset after a successful Resource submission. - [x] Preserve entered values after failed submissions and keep Navigation mode behavior unchanged. - [x] Cover text, selection, and file inputs, including authored defaults, in focused tests. - [x] Handle authored fields named `reset` without skipping the reset or resource refresh. - [x] Verify Builder Preview and published-site behavior use the same client path. - [x] Update the Form guide for the changed behavior. - [x] Explain the prototype reset call in a short code comment. - [x] Run focused browser tests, typecheck, formatting, and lint on the follow-up. - [x] Verify required CI on the follow-up commit. The reset test fails when the reset call is removed. The `reset` field test failed before the review fix. Both pass now.