fix: account for htmx issues in mobile safari with select fields

This commit is contained in:
Björn Fromme
2025-12-09 11:42:31 +01:00
parent 6b32b6baa4
commit 9c6860ecc6
4 changed files with 15 additions and 11 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
{% extends 'layout_booking.html.twig' %}
{% set htmx_change_trigger = 'change delay:300ms' %}
{% macro stepFormField(form) %}
<div class="grid grid-cols-3 pb-2">
<div class="col-span-2 pr-2">
@@ -15,7 +17,7 @@
'attr': {
'hx-post': path('app_booking_create_step_1_refresh'),
'hx-swap': 'none',
'hx-trigger': 'change delay:300ms',
'hx-trigger': htmx_change_trigger,
}
}) }}
</div>
+1 -1
View File
@@ -40,7 +40,7 @@
{# Payment method selection with HTMX #}
<div id="form-payment"
hx-post="{{ path('app_booking_create_step_3_refresh') }}"
hx-trigger="change"
hx-trigger="{{ htmx_change_trigger }}"
hx-target="#form-payment"
hx-select="#form-payment"
hx-swap="outerHTML">