mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Try to stop chrome form autofilling
This commit is contained in:
@@ -24,6 +24,7 @@ export default class SettingsInput extends Component {
|
||||
inline: this.props.inline ? 'd-inline-block' : 'd-block',
|
||||
btnType: this.props.btnType,
|
||||
earlyReturn: this.props.earlyReturn ? true : false,
|
||||
autoComplete: String(this.props.autoComplete ? true : Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 7)),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +73,8 @@ export default class SettingsInput extends Component {
|
||||
disabled={disabled}
|
||||
min={this.state.min}
|
||||
max={this.state.max}
|
||||
onInput={this.handleInput} />
|
||||
onInput={this.handleInput}
|
||||
autoComplete={this.state.autoComplete} />
|
||||
}
|
||||
|
||||
generateSelectInput(disabled) {
|
||||
@@ -109,7 +111,8 @@ export default class SettingsInput extends Component {
|
||||
type={this.state.type}
|
||||
defaultValue={this.state.value}
|
||||
disabled={disabled}
|
||||
onInput={this.handleInput} />
|
||||
onInput={this.handleInput}
|
||||
autoComplete={this.state.autoComplete} />
|
||||
}
|
||||
|
||||
generatePasswordInput(disabled) {
|
||||
@@ -118,7 +121,8 @@ export default class SettingsInput extends Component {
|
||||
type={this.state.type}
|
||||
defaultValue={this.state.value}
|
||||
disabled={disabled}
|
||||
onInput={this.handleInput} />
|
||||
onInput={this.handleInput}
|
||||
autoComplete={this.state.autoComplete} />
|
||||
}
|
||||
|
||||
generateButtonGetInput() {
|
||||
|
||||
Reference in New Issue
Block a user