mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-03-26 11:21:24 +01:00
fix: add x-data to ArbitraryDecimalDisplayNumberInput to fix startup
This commit is contained in:
@@ -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')",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user