You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a basic functional component that renders content from the default slot
Attempt to mount the component with a string in the default slot
What is expected?
Should render the string, eg <p>Some string</p>
What is actually happening?
Test utils renders an empty <div>, eg <p><div></div></p>
The component works as expected outside of the test environment. See the repro, where slotted content renders as expected.
The text was updated successfully, but these errors were encountered:
danielsdeboer
changed the title
Function components render slots with strings as empty divs
Functional components render slots with strings as empty divs
Jun 8, 2018
Version
1.0.0-beta.16
Reproduction link
https://codesandbox.io/s/j376k9jvv
Steps to reproduce
What is expected?
Should render the string, eg
<p>Some string</p>
What is actually happening?
Test utils renders an empty
<div>
, eg<p><div></div></p>
The component works as expected outside of the test environment. See the repro, where slotted content renders as expected.
The text was updated successfully, but these errors were encountered: