mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[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:
committed by
Géry Debongnie
parent
7ebe0da962
commit
d08ea63565
@@ -18,7 +18,7 @@ exports[`RouteComponent can render simple cases 1`] = `
|
||||
let w4 = k5 in parent.__owl__.cmap ? parent.__owl__.children[parent.__owl__.cmap[k5]] : false;
|
||||
let vn6 = {};
|
||||
result = vn6;
|
||||
let props4 = Object.assign({}, scope['env'].router.currentParams);
|
||||
let props4 = Object.assign({}, scope['env'].router.currentParams, {});
|
||||
if (w4 && w4.__owl__.currentFiber && !w4.__owl__.vnode) {
|
||||
w4.destroy();
|
||||
w4 = false;
|
||||
|
||||
Reference in New Issue
Block a user