diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-03-02 11:30:10 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-03-02 11:30:10 +0100 |
| commit | 64eb65b85ee4ac27917c0f50573967f1d526ce6b (patch) | |
| tree | 964af656699fb4dbb0862791d02715cd7eb0585b | |
| parent | 57729ef5cb8fec383f371674f4bca2d1191518a5 (diff) | |
| download | mullvadvpn-64eb65b85ee4ac27917c0f50573967f1d526ce6b.tar.xz mullvadvpn-64eb65b85ee4ac27917c0f50573967f1d526ce6b.zip | |
Always provide a dynamic ref to be able to restore the DOM selection
There is been a subtle bug related to the move away from ::operator
towards arrow function.
See https://github.com/mullvad/mullvadvpn-app/commit/398cab0730b40a6c98687d9be54d12446eda4a08#diff-c710bb1d123ea3b116c1967675c8c7e6L96
| -rw-r--r-- | app/components/AccountInput.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/components/AccountInput.js b/app/components/AccountInput.js index 21967d856a..fea2098eeb 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) } /> ); } |
