Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions guides/client/bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ may be specified, which can contain a `Phoenix.LiveView.JS` command to execute.
The `phx-remove` command is only executed for the removed parent element.
It does not cascade to children.

Note that it's recommended that for `phx-remove` to work correctly, the parent
element should have a (unique) DOM ID. If it doesn't have one, it may not fire.

To react to elements being updated in the DOM, you'll need to use a
[hook](js-interop.md#client-hooks-via-phx-hook), which gives you full access
to the element life-cycle.
Expand Down