summaryrefslogtreecommitdiffhomepage
path: root/app/components/AccountInput.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-03-02 12:51:53 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-03-02 12:51:53 +0100
commitf556ff313190aece18bb2c0a6a09fb189cdc0cd9 (patch)
tree261e6170a2fb402672a3ef25dcbccf31a359dbc2 /app/components/AccountInput.js
parent57729ef5cb8fec383f371674f4bca2d1191518a5 (diff)
parent58533f064b7be022c205ffcea6ce66f90e065036 (diff)
downloadmullvadvpn-f556ff313190aece18bb2c0a6a09fb189cdc0cd9.tar.xz
mullvadvpn-f556ff313190aece18bb2c0a6a09fb189cdc0cd9.zip
Merge branch 'fix-dom-selection-in-account-input'
Diffstat (limited to 'app/components/AccountInput.js')
-rw-r--r--app/components/AccountInput.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/components/AccountInput.js b/app/components/AccountInput.js
index 21967d856a..418cb3b77e 100644
--- a/app/components/AccountInput.js
+++ b/app/components/AccountInput.js
@@ -85,7 +85,7 @@ export default class AccountInput extends React.Component<AccountInputProps, Acc
onKeyDown={ this.onKeyDown }
onPaste={ this.onPaste }
onCut={ this.onCut }
- ref={ this.onRef } />
+ ref={ (ref) => this.onRef(ref) } />
);
}
@@ -295,7 +295,7 @@ export default class AccountInput extends React.Component<AccountInputProps, Acc
}
}
- onRef = (ref: ?HTMLInputElement) => {
+ onRef(ref: ?HTMLInputElement) {
this._ref = ref;
if(!ref) { return; }