-
Notifications
You must be signed in to change notification settings - Fork 214
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
Substitution inside Repetition not rendering at all #92
Comments
Afonso, assigned to you as it could be related to your changes |
…he slot content When the content of the slot is needsDraw=true and set an element it is not being added to the draw loop because it is not part of the component tree since its element isn't in the DOM yet. When the content is finally added to the component tree needsDraw=true doesn't have any effect anymore because it is already in that state, never making it to the draw cycle ever again. This will be correctly addressed in master.
Besides the fix I just pushed and asked for a pull request there's an error in that example. |
Eliseo, did you verify with the change? |
Hi, yes. I verified the fix and it works. However I still have a problem with the List component. I think it's being addressed on #91 |
commit has been merged into v0.6 #93 |
This is still open as a correct fix still need to be found -> #130 |
The fix for this is waiting to be reviewed and pulled into master in gh-217. |
This change is available on master, @eliseosoto can you verify? Thanks. |
Tested screening with the current Montage master and it works. Is there anything new in master related to this issue? Because everything started working for me since the final v0.6 |
There was a work around in place in the v0.6 branch, but the work around should not have been present in master. I added an API for setting an element with a parentComponent on a component and updated the slot to use this API in master, but this change was only merged earlier today. |
Ok, since this solves my issue I'll close this. Thanks! |
See this example
One more thing, I added a logger to see the contents of switchComponents inside the substitution and I get this:
Notice that
text
is not an Object, is directly takingtext.value
. Also notice that the switchComponent is wrapped inside a<div>
only if it's an Object.Maybe related to #91
The text was updated successfully, but these errors were encountered: