mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
ref: update owl.js, use componentdidupdate
This commit is contained in:
+1
-3
@@ -59,13 +59,11 @@ class TabbedEditor extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
updateProps() {
|
||||
const result = super.updateProps(...arguments);
|
||||
componentDidUpdate() {
|
||||
if (this.editor) {
|
||||
window.dispatchEvent(new Event("resize"));
|
||||
this.editor.setValue(this.props[this.state.currentTab], -1);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
willUnmount() {
|
||||
|
||||
Reference in New Issue
Block a user