668378b0f52d4756a4a7cad0a2e7c68e71c0f52b
The useChildRef (used with the useForwardRefToParent hook) allows to retrieve, from a parent component, a t-ref from a child. Consider the following scenario: - have a parent calling useChildRef - have a conditional (with t-if) child calling useForwardRefToParent - in the initial rendering, the child is displayed -> ref.el points to the correct html element - re-render s.t. the child is no longer displayed -> ref.el is null, because the referenced element doesn't exist - re-render s.t. the child is displayed again Before this commit, at this point, ref.el will always be null, even though the corresponding element comes back into the DOM. This commit fixes the issue by correctly updating the ref, each time the useForwardRefToParent hook is called. closes odoo/odoo#100937 X-original-commit: 78d39c79993d1d63c189164f8104e5a3c90f2efd Signed-off-by: Géry Debongnie <ged@odoo.com> Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%