mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-01 04:38:15 +00:00
Turn off autocomplete - fix
This commit is contained in:
parent
041c3ac422
commit
d62a914824
@ -172,6 +172,7 @@ class Input extends PureComponent {
|
|||||||
<Overlay isPartiallyHidden={this.props.isPartiallyHidden} />
|
<Overlay isPartiallyHidden={this.props.isPartiallyHidden} />
|
||||||
{this.props.icon}
|
{this.props.icon}
|
||||||
<StyledInput
|
<StyledInput
|
||||||
|
autoComplete="off"
|
||||||
trezorAction={this.props.trezorAction}
|
trezorAction={this.props.trezorAction}
|
||||||
hasIcon={this.getIcon(this.props.state).length > 0}
|
hasIcon={this.getIcon(this.props.state).length > 0}
|
||||||
innerRef={this.props.innerRef}
|
innerRef={this.props.innerRef}
|
||||||
@ -179,10 +180,10 @@ class Input extends PureComponent {
|
|||||||
type={this.props.type}
|
type={this.props.type}
|
||||||
color={this.getColor(this.props.state)}
|
color={this.getColor(this.props.state)}
|
||||||
placeholder={this.props.placeholder}
|
placeholder={this.props.placeholder}
|
||||||
autocomplete={this.props.autocomplete}
|
|
||||||
autocorrect={this.props.autocorrect}
|
autocorrect={this.props.autocorrect}
|
||||||
autocapitalize={this.props.autocapitalize}
|
autocapitalize={this.props.autocapitalize}
|
||||||
spellCheck={this.props.spellCheck}
|
spellCheck={this.props.spellCheck}
|
||||||
|
isSmallText={this.props.isSmallText}
|
||||||
value={this.props.value}
|
value={this.props.value}
|
||||||
readOnly={this.props.readOnly}
|
readOnly={this.props.readOnly}
|
||||||
onChange={this.props.onChange}
|
onChange={this.props.onChange}
|
||||||
@ -238,6 +239,7 @@ Input.propTypes = {
|
|||||||
Input.defaultProps = {
|
Input.defaultProps = {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
autoSelect: false,
|
autoSelect: false,
|
||||||
|
autocomplete: 'off',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Input;
|
export default Input;
|
||||||
|
Loading…
Reference in New Issue
Block a user