mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 21:04:15 +00:00
fix(frontend): add missing autofocus for content add edit dialogs
This commit is contained in:
parent
84f25ecfb1
commit
bc5d6d3303
@ -68,6 +68,7 @@ const ContentFieldInput: React.FC<ContentFieldInput> = ({
|
|||||||
case ContentFieldType.URL:
|
case ContentFieldType.URL:
|
||||||
return (
|
return (
|
||||||
<Input
|
<Input
|
||||||
|
autoFocus
|
||||||
multiline={contentField.type === ContentFieldType.TEXTAREA}
|
multiline={contentField.type === ContentFieldType.TEXTAREA}
|
||||||
rows={contentField.type === ContentFieldType.TEXTAREA ? 5 : 1}
|
rows={contentField.type === ContentFieldType.TEXTAREA ? 5 : 1}
|
||||||
label={t(`label.${contentField.name}`, {
|
label={t(`label.${contentField.name}`, {
|
||||||
|
Loading…
Reference in New Issue
Block a user