summaryrefslogtreecommitdiffhomepage
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
parent57729ef5cb8fec383f371674f4bca2d1191518a5 (diff)
parent58533f064b7be022c205ffcea6ce66f90e065036 (diff)
downloadmullvadvpn-f556ff313190aece18bb2c0a6a09fb189cdc0cd9.tar.xz
mullvadvpn-f556ff313190aece18bb2c0a6a09fb189cdc0cd9.zip
Merge branch 'fix-dom-selection-in-account-input'
-rw-r--r--CHANGELOG.md1
-rw-r--r--app/components/AccountInput.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index afc660c4e0..d54b3718e6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Increase a timeout for problem report collection to fix a timeout error on slower machines.
- Fix a memory leak in the problem report collection routine.
- Fix an issue when viewing a problem report brought up a dialog to choose the application to open the file.
+- Fix a bug in account input field that advanced the cursor to the end regardless its prior position.
## [2018.1-beta10] - 2018-02-13
### Added
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; }