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

[solid-js/html] <Show> in html template renders function source code to DOM #2033

Open
trusktr opened this issue Jan 14, 2024 · 0 comments
Open
Labels
alternative templating Related to non-JSX template engines

Comments

@trusktr
Copy link
Contributor

trusktr commented Jan 14, 2024

Describe the bug

A template with <Show>, f.e.

html`
	<${Show} when=${() => true}>
		<p>asd</p>
	</${Show}>
`

renders the following DOM (the below is what you see on the screen):

function () { [native code] },>

Your Example Website or App

https://playground.solidjs.com/anonymous/b46ba5d0-593a-4762-9eb1-91b4e1903e58

Steps to Reproduce the Bug or Issue

  1. See playground
  2. see visual output

Expected behavior

It should handle the Show component

Screenshots or Videos

Screenshot 2024-01-14 at 11 41 18 AM

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Workaround

Switch to a ternary expression for now

@ryansolid ryansolid added the alternative templating Related to non-JSX template engines label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alternative templating Related to non-JSX template engines
Projects
None yet
Development

No branches or pull requests

2 participants