fix: add x-data to ArbitraryDecimalDisplayNumberInput to fix startup

This commit is contained in:
Herculino Trotta
2024-10-26 19:14:00 -03:00
parent dfb57ec4cc
commit dc92313c87

View File

@@ -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')",
}
)