feat: answer field UX improvements

- Auto-add one empty answer field when opening a blank question form
- Auto-append new empty field when typing in the last answer field
- Strip empty answer rows before submit (novalidate + JS cleanup)
- Tab key skips correct/delete buttons, jumping straight to next answer
This commit is contained in:
2026-07-06 22:28:57 +02:00
parent 64a09453e6
commit 394b8c7d33
5 changed files with 29 additions and 6 deletions
@@ -1,6 +1,6 @@
{% import 'backoffice/partials/answer_row.html.twig' as macros %}
{{ form_start(form) }}
{{ form_start(form, {attr: {novalidate: 'novalidate'}}) }}
{{ form_row(form.question) }}
<div data-controller="bo--form-collection"