3 ms·
I’m curious why the author used phx-change function for the form, I believe a better way to do this would be the phx-keyup function attached the text field.
by owens99 7y ago
I’m curious why the author used phx-change function for the form, I believe a better way to do this would be the phx-keyup function attached the text field.
- jclem 7y agoThere’s more than one field here, it’s just not discussed in the post. The title is a separate form field that is validated and updates live on every change event. `phx-change` gives me the whole form state, which is what I wanted.