https://github.com/axelson/phoenix_live_view_reset_form_repro
https://github.com/axelson/phoenix_live_view_reset_form_repro
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/axelson/phoenix_live_view_reset_form_repro
- Owner: axelson
- Created: 2024-11-17T17:02:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T17:52:44.000Z (over 1 year ago)
- Last Synced: 2025-03-20T13:16:11.704Z (over 1 year ago)
- Language: Elixir
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduce issue with Resetting LiveView Form Programmatically
Steps to reproduce
- Run `mix.setup`
- Run `iex -S mix phx.server`
- Visit http://localhost:4000
- Fill out the form
- Press submit
- The form is not cleared but I would expect it to be cleared because I call `reset_form` which assigns a fresh `@form` assign