mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix 10706 - Prevent autocomplete from add token input (#10700)
This commit is contained in:
parent
0fdc8a42ce
commit
c14919c60f
@ -90,6 +90,7 @@ const getMaterialThemeInputProps = ({
|
|||||||
startAdornment,
|
startAdornment,
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
|
autoComplete,
|
||||||
}) => ({
|
}) => ({
|
||||||
InputLabelProps: {
|
InputLabelProps: {
|
||||||
classes: {
|
classes: {
|
||||||
@ -107,6 +108,7 @@ const getMaterialThemeInputProps = ({
|
|||||||
dir,
|
dir,
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
|
autoComplete,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -122,6 +124,7 @@ const getMaterialWhitePaddedThemeInputProps = ({
|
|||||||
startAdornment,
|
startAdornment,
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
|
autoComplete,
|
||||||
}) => ({
|
}) => ({
|
||||||
InputProps: {
|
InputProps: {
|
||||||
startAdornment,
|
startAdornment,
|
||||||
@ -135,6 +138,7 @@ const getMaterialWhitePaddedThemeInputProps = ({
|
|||||||
dir,
|
dir,
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
|
autoComplete,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -155,6 +159,7 @@ const getBorderedThemeInputProps = ({
|
|||||||
startAdornment,
|
startAdornment,
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
|
autoComplete,
|
||||||
}) => ({
|
}) => ({
|
||||||
InputLabelProps: {
|
InputLabelProps: {
|
||||||
shrink: true,
|
shrink: true,
|
||||||
@ -177,6 +182,7 @@ const getBorderedThemeInputProps = ({
|
|||||||
dir,
|
dir,
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
|
autoComplete,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -196,6 +202,7 @@ const TextField = ({
|
|||||||
dir,
|
dir,
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
|
autoComplete,
|
||||||
...textFieldProps
|
...textFieldProps
|
||||||
}) => {
|
}) => {
|
||||||
const inputProps = themeToInputProps[theme]({
|
const inputProps = themeToInputProps[theme]({
|
||||||
@ -205,6 +212,7 @@ const TextField = ({
|
|||||||
dir,
|
dir,
|
||||||
min,
|
min,
|
||||||
max,
|
max,
|
||||||
|
autoComplete,
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -232,6 +240,7 @@ TextField.propTypes = {
|
|||||||
largeLabel: PropTypes.bool,
|
largeLabel: PropTypes.bool,
|
||||||
min: PropTypes.number,
|
min: PropTypes.number,
|
||||||
max: PropTypes.number,
|
max: PropTypes.number,
|
||||||
|
autoComplete: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default withStyles(styles)(TextField);
|
export default withStyles(styles)(TextField);
|
||||||
|
@ -72,6 +72,7 @@ export default class TokenSearch extends Component {
|
|||||||
error={error}
|
error={error}
|
||||||
fullWidth
|
fullWidth
|
||||||
autoFocus
|
autoFocus
|
||||||
|
autoComplete="off"
|
||||||
startAdornment={this.renderAdornment()}
|
startAdornment={this.renderAdornment()}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user