From b55e8ba93c0c01141a3f54820701731661ed5fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rahir=20=28rar=29?= Date: Tue, 21 Mar 2023 16:02:54 +0000 Subject: [PATCH] [FIX] config: bump owl version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit catching up to odoo version 2.0.9 closes odoo/o-spreadsheet#2260 Signed-off-by: Lucas Lefèvre (lul) Signed-off-by: Rémi Rahir (rar) --- package-lock.json | 11 +++++++---- package.json | 2 +- src/components/grid_overlay/grid_overlay.ts | 3 +++ src/components/selection_input/selection_input.xml | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6f08ce4940..aa5523e540 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "16.2.0", "license": "LGPL-3.0-or-later", "dependencies": { - "@odoo/owl": "2.0.3", + "@odoo/owl": "2.0.9", "bootstrap": "^5.1.3" }, "devDependencies": { @@ -1244,8 +1244,9 @@ } }, "node_modules/@odoo/owl": { - "version": "2.0.3", - "license": "LGPL-3.0-only", + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@odoo/owl/-/owl-2.0.9.tgz", + "integrity": "sha512-i5wmSyU9uiM/ncglZ6IUbBzwwxft5w9S6e29VOpP+bfPvoVh4b9z2SrTeOsijOYYuh15b0iAOZeHhEE/fjq3Mg==", "engines": { "node": ">=12.18.3" } @@ -11268,7 +11269,9 @@ } }, "@odoo/owl": { - "version": "2.0.3" + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@odoo/owl/-/owl-2.0.9.tgz", + "integrity": "sha512-i5wmSyU9uiM/ncglZ6IUbBzwwxft5w9S6e29VOpP+bfPvoVh4b9z2SrTeOsijOYYuh15b0iAOZeHhEE/fjq3Mg==" }, "@popperjs/core": { "version": "2.11.5", diff --git a/package.json b/package.json index 8317345293..d21dff7539 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "xmlSelfClosingSpace": false }, "dependencies": { - "@odoo/owl": "2.0.3", + "@odoo/owl": "2.0.9", "bootstrap": "^5.1.3" }, "jest": { diff --git a/src/components/grid_overlay/grid_overlay.ts b/src/components/grid_overlay/grid_overlay.ts index 89fcd6cdc2..5f2c02929d 100644 --- a/src/components/grid_overlay/grid_overlay.ts +++ b/src/components/grid_overlay/grid_overlay.ts @@ -173,6 +173,9 @@ export class GridOverlay extends Component { onMounted(() => { resizeObserver.observe(this.gridOverlayEl); }); + onWillUnmount(() => { + resizeObserver.disconnect(); + }); useTouchMove(this.gridOverlay, this.props.onGridMoved, () => { const { scrollY } = this.env.model.getters.getActiveSheetDOMScrollInfo(); return scrollY > 0; diff --git a/src/components/selection_input/selection_input.xml b/src/components/selection_input/selection_input.xml index c705ee7d0c..86ffc9a567 100644 --- a/src/components/selection_input/selection_input.xml +++ b/src/components/selection_input/selection_input.xml @@ -22,7 +22,7 @@ 'o-invalid': isInvalid || !range.isValidRange, 'text-decoration-underline': range.isFocused and state.mode === 'select-range' }" - t-ref="{{range.isFocused ? 'focused' : 'unfocused'}}Input" + t-ref="{{range.isFocused ? 'focusedInput' : 'unfocusedInput' + range_index}}" />