disable auto focus from share email input

This commit is contained in:
Abhinav 2022-07-06 10:26:31 +05:30
parent bb4f6ee29b
commit 5ed68de097
2 changed files with 3 additions and 1 deletions

View file

@ -41,6 +41,7 @@ export default function EmailShare({ collection }) {
size: 'medium',
sx: { mt: 1, mb: 2 },
}}
disableAutoFocus
/>
<CollectionShareSharees collection={collection} />
</>

View file

@ -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' && (
<ShowHidePassword