mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
do not destroy and rerender sub widgets if not necessary
add failing test on rerendering sub widgets...
This commit is contained in:
@@ -56,10 +56,5 @@ export class Discuss extends Widget<Env> {
|
||||
|
||||
class ColorWidget extends Widget<Env> {
|
||||
name = "colorwidget";
|
||||
template = `<div>Current Color: <t t-esc="state.color"/></div>`;
|
||||
state: { color: "red" | "blue" };
|
||||
constructor(parent: Widget<Env>, props: { color: "red" | "blue" }) {
|
||||
super(parent);
|
||||
this.state = { color: props.color };
|
||||
}
|
||||
template = `<div>Current Color: <t t-esc="props.color"/></div>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user