I have a little doubt …
I have a form in “liveview”, which does not expect me to type in the form and automatically it already updates the field …
because of phx_change.
Is there any way that this upload will be done only after you finish typing?
I’ve just plugged it into my project and tested it - works like it says on the tin. You will need to add it into the “opts” when constructing the inputs, eg:
I’m doing this from memory on my phone so there may be a few mistakes, but try the following:
Check that you mix file is pointing to the current version of liveview (0.3.1)
Check that you have updated dependencies (mix deps.update)
Check that the right version of the liveview js file is referenced in your assets/package.json (it should point to deps/phoenix_live_view)
Check that that referenced JavaScript library has been properly updated by mix (search for debounce)
Remove debounce attribute from form level tag
Ensure your input is correctly bound to your form field - to double check this you are probably better using the helper functions in Phoenix.HTML.Form as per my example rather than hand coding the input tag.
Sorry for the imprecise steps - if you still can’t get it going I’ll take a look tonight when I’m back on a proper computer. It would be good if you provided your schema for the form, the live controller code and your template code.