Phoenix LiveView how to edit content in place?

Careful! Input elements with name="id" in live view forms can cause some very annoying bugs, because that causes the .id attribute of the form element to hold the DOM element of the input with that name rather than id attribute value of the form. See for instance this thread. The solution is to use a name other than id for your input—in this case, perhaps it could be name="list-id".

2 Likes