-
Notifications
You must be signed in to change notification settings - Fork 791
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
node.parentNode
value is null when relocating slot content in certain cases
#2758
Comments
Using the sample is the repo provided by the Stencil user, the issue appears to manifest on this line of code with the content of the childNode being More info from the user: the error occurs whenever there is a single text node. The following maquette snippet will produce the error: h("calcite-radio-button", ["foo"]) Adding more than one works fine: h("calcite-radio-button", ["foo", "bar"]) |
Hi @kensodemann! I discovered and reproduced this bug originally. Let me know if you/the team have any questions when you start to take a look at this. |
I reproduced this bug here with |
#2758 (comment) |
@eriklharper Just saw that after posting my comment...thanks, I'll take another look! |
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Working with a community member we've run into this strange error that shows up when we bring in a Stencil component (scoped w/ slots) in an app using maquette (https://maquettejs.org/):
The error seems to be caused by a comment node being processed when relocating the slot content.
Expected behavior:
It would not throw an exception... :)
Steps to reproduce:
1121/radio-mapviewer-issues
branch.npm i && npm start
<dev server url>/demos/maquette-playground.html
(make sure dev console is open)Other information:
Additional info:
calcite-radio-button
(used in the repro case)The text was updated successfully, but these errors were encountered: