odoo / owl

OWL: A web framework for structured, dynamic and maintainable applications
https://odoo.github.io/owl/
Other
1.14k stars 344 forks source link

t-esc="item.description" in a slot in a t-call in a t-foreach: only description of the last item is displayed #1565

Open Polymorphe57 opened 10 months ago

Polymorphe57 commented 10 months ago

see on playground

sdegueldre commented 10 months ago

Caused by the fact that target.loopLevel is lost accross t-call boundaries, therefore context capture doesn't occur, not obvious how to fix, since a template can be t-called from multiple places, some inside loops and others not. Maybe we should just always capture on t-call in t-foreach?

ged-odoo commented 10 months ago

hmm, this is annoying indeed