Skip to content

Add new row button on form errors #16

Description

@bsramin

If I try to submit the form with an error, with many rows entered, on rendering the button ends up above the first row.

screenshot-20240914-18 34-9VoQ0XCe

I am using the latest version and the configuration is "classic":

    'add_label' => $this->translator->trans('company.form.language.addNew', [], 'forms'),
    'entry_type' => CompanyLanguageType::class,
    'allow_add' => true,
    'allow_delete' => true,
    'add_class' => 'custom-add-form',
    'allow_drag_and_drop' => true,
    'drag_and_drop_filter' => 'input',
    'by_reference' => false,
    'display_sort_buttons' => true,
    'error_bubbling' => false,
    'min' => 1,
    'max' => $maxLanguage,
<div class="sm:col-span-full">
        <label for="{{ form.companyLanguage.vars.id }}">{{ form.companyLanguage.vars.label }}</label>
        <div>{{ 'companyLanguage.form.language.help'|trans({}, 'forms') }}</div>
        {{ form_widget(form.companyLanguage) }}
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions