mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] qweb: properly remove t-ref reference
when the node is removed from the dom
This commit is contained in:
@@ -1911,6 +1911,9 @@ exports[`t-ref can get a dynamic ref on a node 1`] = `
|
||||
create: (_, n) => {
|
||||
context.__owl__.refs[ref3] = n.elm;
|
||||
},
|
||||
destroy: () => {
|
||||
delete context.__owl__.refs[ref3];
|
||||
},
|
||||
};
|
||||
return vn1;
|
||||
}"
|
||||
@@ -1931,6 +1934,9 @@ exports[`t-ref can get a ref on a node 1`] = `
|
||||
create: (_, n) => {
|
||||
context.__owl__.refs[ref3] = n.elm;
|
||||
},
|
||||
destroy: () => {
|
||||
delete context.__owl__.refs[ref3];
|
||||
},
|
||||
};
|
||||
return vn1;
|
||||
}"
|
||||
@@ -1967,6 +1973,9 @@ exports[`t-ref refs in a loop 1`] = `
|
||||
create: (_, n) => {
|
||||
context.__owl__.refs[ref6] = n.elm;
|
||||
},
|
||||
destroy: () => {
|
||||
delete context.__owl__.refs[ref6];
|
||||
},
|
||||
};
|
||||
var _7 = context['item'];
|
||||
if (_7 || _7 === 0) {
|
||||
|
||||
Reference in New Issue
Block a user