fix(frontend): add missing autofocus for content add edit dialogs

This commit is contained in:
yassinedorbozgithub 2024-12-18 15:27:22 +01:00
parent 84f25ecfb1
commit bc5d6d3303

View File

@ -68,6 +68,7 @@ const ContentFieldInput: React.FC<ContentFieldInput> = ({
case ContentFieldType.URL:
return (
<Input
autoFocus
multiline={contentField.type === ContentFieldType.TEXTAREA}
rows={contentField.type === ContentFieldType.TEXTAREA ? 5 : 1}
label={t(`label.${contentField.name}`, {