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

Rendering bug in Astro templates following a loop #8991

Closed
1 task
rjvdw opened this issue Nov 2, 2023 · 1 comment
Closed
1 task

Rendering bug in Astro templates following a loop #8991

rjvdw opened this issue Nov 2, 2023 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@rjvdw
Copy link

rjvdw commented Nov 2, 2023

Astro Info

Astro                    v3.4.3
Node                     v20.9.0
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When writing the following piece of JSX:

<div class="wrapper">
  <table>
    <tr>
      <th>text</th>
    </tr>

    {
      data.map((row) => (
        <tr>
          <td>{row.text}</td>
        </tr>
      ))
    }
  </table>
</div>

<p>I live outside the wrapper.</p>

the paragraph is incorrectly rendered inside the div.wrapper.

What's the expected result?

The paragraph should be rendered outside of the div, but instead it gets rendered inside the div.

Link to Minimal Reproducible Example

https://github.com/rjvdw/astro-bug

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Nov 2, 2023
@bluwy
Copy link
Member

bluwy commented Nov 6, 2023

This looks like another instance of withastro/compiler#870. Closing in favour of it instead.

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants