From dc92313c875584c3eff591caa703b94a289ced09 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sat, 26 Oct 2024 19:14:00 -0300 Subject: [PATCH] fix: add x-data to ArbitraryDecimalDisplayNumberInput to fix startup --- app/apps/common/widgets/decimal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/apps/common/widgets/decimal.py b/app/apps/common/widgets/decimal.py index 00028ea..3ec1cd3 100644 --- a/app/apps/common/widgets/decimal.py +++ b/app/apps/common/widgets/decimal.py @@ -32,8 +32,9 @@ class ArbitraryDecimalDisplayNumberInput(forms.TextInput): super().__init__(*args, **kwargs) self.attrs.update( { + "x-data": "", "x-mask:dynamic": f"$money($input, '{get_format('DECIMAL_SEPARATOR')}', " - f"'{get_format('THOUSAND_SEPARATOR')}', '30')" + f"'{get_format('THOUSAND_SEPARATOR')}', '30')", } )