question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Phoenix Live View Form Formatting fails

See original GitHub issue

Firstly, thanks for a nice plugin. For a Phoenix Form in a LiveView - we give <%= f = form_for @changeset, "#", phx_change: "validate", phx_submit: "save", %>

and we close the tag with </form> - There is no <% end %> The extension is unable to handle this - and - is breaking. Can you please look into the issue.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cvkmohancommented, Jun 9, 2021

I placed one closing div extra - and - with those many classes from tailwind, I just could not locate it. Your suggestion to produce the minimum reproducible file, made me locate the miss. Sorry for all the inconvenience. My mistake. Thanks for the prompt response.

0reactions
adamzapasnikcommented, Jun 9, 2021

😞 if you could provide a minimal reproducible file then we can solve it for sure

Read more comments on GitHub >

github_iconTop Results From Across the Web

Real-Time Form Validation with Phoenix LiveView
In this post, I'll show you how to build LiveView forms that validate changes and provide feedback to the user in real-time. Along...
Read more >
LiveView server-side validation/formatting of form inputs ...
What I am trying to do is having form input numbers (amounts) validated and formatted server-side by using ex_cldr_numbers library (which btw, ...
Read more >
Phoenix LiveView form_for raising NoRouteError at POST
The reason I asked this question is that yes: I do lack basic understanding of live view, and that is because this is...
Read more >
Phoenix.LiveView.HTMLFormatter plugin causing issue in UI
The fix for that will be likely changing Phoenix generators to use a Phoenix component instead so the tag p will not be...
Read more >
Phoenix.LiveView — phoenix_live_view v0.10.0 - HexDocs
Failing to add the data-phx-error-for attribute will result in displaying error messages for form fields that the user has not changed yet (e.g....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found