mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
cb38d795f9
Previous code naively handled nested t-set-slots: if a second named slots was found, it overrode the first. In this commit, we use a set to make sure that we only use the first found t-set-slot node. Also, we ignore set-slots defined in a sub components, because these slots are only relevant to the sub component itself. Note that it works as expected because document.querySelectorAll performs a search depth first, so we will always use the named slots closer to the parent element, in term of depth. closes #682