diff options
| author | anderklander <anderklander@gmail.com> | 2018-02-28 08:16:40 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-03-26 14:22:10 +0200 |
| commit | 5d6843d430b3165a58baaff517b2feb4b5d6a11a (patch) | |
| tree | b5fe8bcc35d8e601e44ddf7a0ecf051900e72dbb | |
| parent | c1bb35b44e0b566b60f3f7310927a96c8f0224d9 (diff) | |
| download | mullvadvpn-5d6843d430b3165a58baaff517b2feb4b5d6a11a.tar.xz mullvadvpn-5d6843d430b3165a58baaff517b2feb4b5d6a11a.zip | |
remove debug-scrap and _ignoreSelect
| -rw-r--r-- | app/components/AccountInput.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/components/AccountInput.js b/app/components/AccountInput.js index 5b3cac206b..137176ee84 100644 --- a/app/components/AccountInput.js +++ b/app/components/AccountInput.js @@ -41,7 +41,6 @@ export default class AccountInput extends React.Component<AccountInputProps, Acc }; _ref: ?HTMLInputElement; - _ignoreSelect = false; constructor(props: AccountInputProps) { super(props); @@ -216,8 +215,6 @@ export default class AccountInput extends React.Component<AccountInputProps, Acc const result = this.remove(value, selectionRange); e.preventDefault(); - //this._ignoreSelect = true; - this.setState(result, () => { if(this.props.onChange) { this.props.onChange(result.value); @@ -227,8 +224,6 @@ export default class AccountInput extends React.Component<AccountInputProps, Acc const result = this.insert(value, e.key, selectionRange); e.preventDefault(); - //this._ignoreSelect = true; - this.setState(result, () => { if(this.props.onChange) { this.props.onChange(result.value); @@ -240,10 +235,6 @@ export default class AccountInput extends React.Component<AccountInputProps, Acc } onSelect = (start: number, end: number) => { - if(this._ignoreSelect) { - return; - } - const selRange = this.toInternalSelectionRange(this.sanitize(this.state.value), [start, end]); this.setState({ selectionRange: selRange }); } @@ -262,7 +253,6 @@ export default class AccountInput extends React.Component<AccountInputProps, Acc } onCut = (e: ClipboardEvent) => { - console.log(e); const target = e.target; if(!(target instanceof HTMLInputElement)) { throw new Error('ref must be an instance of HTMLInputElement'); |
