[IMP] directive: make props override t-props

Before this commit, props and t-props were computed like
`Object.assign(props, t_props)`.
Now, it computes like `Object.assign(t_props, props)` so props will
override t-props.

closes https://github.com/odoo/owl/issues/886
This commit is contained in:
Michael Mattiello (mcm)
2021-07-02 11:00:30 +02:00
committed by Géry Debongnie
parent 7ebe0da962
commit d08ea63565
4 changed files with 27 additions and 3 deletions
@@ -467,7 +467,7 @@ exports[`dynamic t-props basic use 1`] = `
let vn1 = h('div', p1, c1);
// Component 'Child'
let w2 = '__3__' in parent.__owl__.cmap ? parent.__owl__.children[parent.__owl__.cmap['__3__']] : false;
let props2 = Object.assign({}, scope['some'].obj);
let props2 = Object.assign({}, scope['some'].obj, {});
if (w2 && w2.__owl__.currentFiber && !w2.__owl__.vnode) {
w2.destroy();
w2 = false;