-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form component does not trigger phx-change when navigated to from live_redirect #58
Comments
ziazek
changed the title
Form component does not trigger phx-change when navigated from live_redirect
Form component does not trigger phx-change when navigated to from live_redirect
Mar 18, 2020
Update: I managed to fix it. It was due to a layout declaration in my LiveView. Once I removed it, the bugs went away. defmodule AppWeb.StepperLive do
use Surface.LiveView, layout: {AppWeb.LayoutView, "live.html"}
# Don't put layout here, do it in router
# ...
end Closing this issue. |
@ziazek I'm glad to know you've fixed. Cheers. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using a form component with context, following the Getting Started docs.
Validations work when I arrive at the page via
live_link
. However, usinglive_redirect
causes two weird behaviours:live_redirect
: The form "validate" event fires, but navigating back using the browser doesn't work (I'm still on /form).live_redirect
to /form again: The form "validate" event no longer fires.I suspected that it was due to the LV Component limitations, but I'm not sure. Is it the case?
Thanks.
The text was updated successfully, but these errors were encountered: