Quick-add form resets on failed submissions #50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Related to
ldraney/landscaping-assistant #44— nit from PR #48 review.Repo
ldraney/landscaping-assistantWhat Broke
The
reset-formStimulus controller wired to the quick-add form on the Today tab listens forturbo:submit-end, which fires on both success and failure. If the create action fails (e.g. duplicate, validation error), the form still resets and the user loses their input.Repro Steps
Expected Behavior
Form should only reset on successful submission. Check
event.detail.successbefore callingthis.element.reset().Environment
fix/clear-name-after-addbranchAcceptance Criteria
event.detail.successis trueRelated
landscaping-assistant— project this affectsldraney/landscaping-assistant #44— parent fix that introduced this behaviorReading issue to start work.