Skip to content

Content of portals disappears #4095

@nduitz

Description

@nduitz

Environment

  • Elixir version (please paste the output of elixir -v):
Elixir 1.19.1 (compiled with Erlang/OTP 28)
  • Phoenix and LiveView versions (mix deps | grep -w 'phoenix\|phoenix_live_view'):
* phoenix 1.8.1 (Hex package) (mix)
  locked at 1.8.1 (phoenix) 84d77d2b
* phoenix_live_view 1.1.17 (Hex package) (mix)
  locked at 1.1.17 (phoenix_live_view) fa82307d
  • Operating system:
  • Windows
  • MacOS
  • Linux
  • Other (please specify):
  • Browsers (including version) you attempted to reproduce this bug on (the more the merrier):
Firefox 146
Chrome 143

Actual behavior

When editing the form field the content of the portal disappears.
An example implementation can be found here:

nduitz/disappearing_portals@4a4975d

It took me quite a while to reproduce this in a new phoenix project but this is the most minimal version i could achieve. If you only send one event via hooks, the bug disappears.

Expected behavior

Portal content should not disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions