diff --git a/src/purchase/forms.py b/src/purchase/forms.py index e529d0b..1b73c08 100644 --- a/src/purchase/forms.py +++ b/src/purchase/forms.py @@ -28,7 +28,7 @@ class BasketForm(forms.ModelForm): self.helper.add_input(Submit("submit", _("Save"))) self.helper.attrs = { "hx_post": reverse("purchase:price_preview"), - "hx_trigger": "keyup,change", + "hx_trigger": "keyup delay:500ms,change delay:500ms", "hx_target": "#price_preview", "hx_swap": "innerHTML", }