diff --git a/src/components/Collections/CollectionShare/emailShare.tsx b/src/components/Collections/CollectionShare/emailShare.tsx index 4fe3e8532..97d42bb66 100644 --- a/src/components/Collections/CollectionShare/emailShare.tsx +++ b/src/components/Collections/CollectionShare/emailShare.tsx @@ -41,6 +41,7 @@ export default function EmailShare({ collection }) { size: 'medium', sx: { mt: 1, mb: 2 }, }} + disableAutoFocus /> diff --git a/src/components/SingleInputForm.tsx b/src/components/SingleInputForm.tsx index 52b60b7cd..e35ffdcae 100644 --- a/src/components/SingleInputForm.tsx +++ b/src/components/SingleInputForm.tsx @@ -22,6 +22,7 @@ export interface SingleInputFormProps { submitButtonProps?: any; initialValue?: string; secondaryButtonAction?: () => void; + disableAutoFocus?: boolean; } export default function SingleInputForm(props: SingleInputFormProps) { @@ -90,7 +91,7 @@ export default function SingleInputForm(props: SingleInputFormProps) { error={Boolean(errors.inputValue)} helperText={errors.inputValue} disabled={loading} - autoFocus + autoFocus={!props.disableAutoFocus} InputProps={{ endAdornment: props.fieldType === 'password' && (