disable auto focus from share email input
This commit is contained in:
parent
bb4f6ee29b
commit
5ed68de097
|
@ -41,6 +41,7 @@ export default function EmailShare({ collection }) {
|
|||
size: 'medium',
|
||||
sx: { mt: 1, mb: 2 },
|
||||
}}
|
||||
disableAutoFocus
|
||||
/>
|
||||
<CollectionShareSharees collection={collection} />
|
||||
</>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue