Open thinkOfaNumber opened 7 years ago
OK here's a working gist showing the odd behaviour: https://gist.run/?id=74d33945221dd5fa6aa01b42d310f097
I can't find a workaround to this, and there's a lot of places we're using slots with validation...
@jdanyow Can you take a look at this?
pinging @jdanyow
gist.run seems to be overwriting my gists when I fork new ones from gist.run, so that gist looks empty... if you look at the revisions here you can still see how to reproduce it. Let me know if you want me to get the gist going again.
I'm submitting a bug report
Please tell us about your environment:
Operating System: Windows 7
Node Version: 6.10.2
NPM Version: 4.4.4
Aurelia CLI OR JSPM OR Webpack AND Version webpack 3.3.0
Browser: Chrome 60.0.3112.101 Internet Explorer 11 possibly all?
Language: TypeScript 2.4.1
Current behavior: I'll link to a fork of the skeleton project, but basically the behaviour is this:
and the layout of the elements is:
<slot></slot>
in it<abc></abc>
there is a repeating simple custom element that I called "thing"The result of this is that the properties in "thing" are validated, even though there are no elements in the thing array. And hence the validation fails. If I replace
<abc></abc>
with a<div></div>
this behaviour does not occur.Expected/desired behavior:
I would expect that the same thing happens with a slot as without it. It seems as though something in the slot is holding on to a reference of it contents and not letting it get disposed properly.
Here's the reproduction: https://github.com/thinkOfaNumber/skeleton-navigation I can trim it down a bit more or turn it into a gist if required.
(I'm going away for 1/2 day so won't be able to reply immediately) thanks for looking into it!