Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Partials Ignore Append Mode When Parent Partial Uses Replace Mode #2315

Open
guitavano opened this issue Feb 14, 2024 · 0 comments
Open

Comments

@guitavano
Copy link

As I have replace default at parent Partial, the "append" inside is being ignored and replaced too.

If I have:

<Partial name="modal">
    <p>example</p>
    <Partial name="modal-content" mode="append">
      <p>here is cool content</p>
    </Partial>
</Partial>

And fetch a page with:

<Partial name="modal">
    <p>example 2</p>
    <Partial name="modal-content" mode="append">
      <p>second cool content</p>
    </Partial>
</Partial>

I expected that parent partial replace the content and nested partial append, new page like:

<Partial name="modal">
    <p>example 2</p>
    <Partial name="modal-content" mode="append">
      <p>here is cool content</p>
      <p>second cool content</p>
    </Partial>
</Partial>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant