-
- Downloads
[FW][FIX] web: unsafe access to config property & extract lib's input setter
During TempusDominus autobinding to fields matching its default classes (like `.datetimepicker-input` used by our DatePicker widget) and no config was previously provided to the library (like when we disable it on mobile), an unsafe access to the config's `_options` property results into an error as the config is `undefined`. This PR fixes it by first checking for config existence before attempting to access its property. It also extracts the DatePicker widget's input setter to allow overriding it and preventing from calling the `datetimepicker` lib when not initialized (like on mobile). opw-2242880 closes odoo/odoo#54068 Forward-port-of: odoo/odoo#54039 Forward-port-of: odoo/odoo#54005 Related: odoo/enterprise#11654 Signed-off-by:Adrien Dieudonné (adr) <adr@odoo.com> Signed-off-by:
Pierre Paridans <pparidans@users.noreply.github.com>
No related branches found
No related tags found
Loading
Please register or sign in to comment