diff options
Diffstat (limited to 'modern/src/settings/components/EditAttributesView.js')
-rw-r--r-- | modern/src/settings/components/EditAttributesView.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/settings/components/EditAttributesView.js b/modern/src/settings/components/EditAttributesView.js index 6b7ab5ac..3329d7bc 100644 --- a/modern/src/settings/components/EditAttributesView.js +++ b/modern/src/settings/components/EditAttributesView.js @@ -27,7 +27,7 @@ const useStyles = makeStyles((theme) => ({ }, })); -const EditAttributesView = ({ attributes, setAttributes, definitions }) => { +const EditAttributesView = ({ attributes, setAttributes, definitions, focusAttribute }) => { const classes = useStyles(); const t = useTranslation(); @@ -176,6 +176,7 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { type={type === 'number' ? 'number' : 'text'} value={getDisplayValue(value, subtype)} onChange={(e) => updateAttribute(key, e.target.value, type, subtype)} + autoFocus={focusAttribute === key} endAdornment={( <InputAdornment position="end"> <IconButton size="small" onClick={() => deleteAttribute(key)}> |