[FIX] web_editor: consider negative values in the left panel
A negative value, even if legit, was not understood by the editor and induced empty inputs in the left panel. closes odoo/odoo#44683 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -102,7 +102,7 @@ function _convertNumericToUnit(value, unitFrom, unitTo, cssProp, $target) {
|
||||
* @returns {Array|null}
|
||||
*/
|
||||
function _getNumericAndUnit(value) {
|
||||
const m = value.trim().match(/^([0-9.]+)(\w*)$/);
|
||||
const m = value.trim().match(/^(-?[0-9.]+)(\w*)$/);
|
||||
if (!m) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user