only autofocus if new

This commit is contained in:
buchmann 2026-02-11 14:26:36 +01:00
parent 76f0b05a09
commit 47c0d78985
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ class PartBaseType extends AbstractType
'label' => 'part.edit.name',
'attr' => [
'placeholder' => 'part.edit.name.placeholder',
'autofocus' => true,
'autofocus' => $new_part,
],
])
->add('description', RichTextEditorType::class, [