mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-11 15:22:55 +02: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)
|
super().__init__(*args, **kwargs)
|
||||||
self.attrs.update(
|
self.attrs.update(
|
||||||
{
|
{
|
||||||
|
"x-data": "",
|
||||||
"x-mask:dynamic": f"$money($input, '{get_format('DECIMAL_SEPARATOR')}', "
|
"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