# Nested forms in live components - causing invalid html

**URL:** <https://forum.elixirforum.com/t/nested-forms-in-live-components-causing-invalid-html/68596>\
**Category:** Questions\
**Tags:** phoenix, troubleshooting, liveview, live-view\
**Created:** [January 8, 2025, 7:44pm UTC](https://forum.elixirforum.com/t/nested-forms-in-live-components-causing-invalid-html/68596 "2025-01-08T19:44:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![quinten-kamphuis](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/quinten-kamphuis/32/37182_2.png) [@quinten-kamphuis](https://forum.elixirforum.com/u/quinten-kamphuis)\
**Post date:** [January 9, 2025, 11:27am UTC](https://forum.elixirforum.com/t/nested-forms-in-live-components-causing-invalid-html/68596/5 "2025-01-09T11:27:29Z")

</div>

Yes, agreed. Although I would need PubSub or a hook for the modal to talk to the editor. And it does not make sense for the parent component to have a link insertion modal in it, they belong in the editor since they’re tightly coupled.

This is basically the best option for now right? Portals would probably solve this so I’ll take a look at that issue. Thanks for providing your insights!

---

_[View the full topic](https://forum.elixirforum.com/t/nested-forms-in-live-components-causing-invalid-html/68596)._
