owl icon indicating copy to clipboard operation
owl copied to clipboard

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

Open Polymorphe57 opened this issue 2 years ago • 2 comments

see on playground

Polymorphe57 avatar Dec 07 '23 13:12 Polymorphe57

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?

sdegueldre avatar Dec 07 '23 14:12 sdegueldre

hmm, this is annoying indeed

ged-odoo avatar Dec 08 '23 08:12 ged-odoo