Skip to content
This repository was archived by the owner on Feb 28, 2018. It is now read-only.
Open
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
16290b5
Pushed react ver requirement back
May 22, 2015
ad7b605
Updated check of var
Jul 13, 2015
3711279
Removed bump
Jul 13, 2015
3dc52e1
Fixed package pointer
Jul 17, 2015
99c54e4
Add more parameters in callbacks and bump packages
Jul 21, 2015
b1e8007
Merge pull request #18 from binarykitchen/master
Jul 21, 2015
e25ade0
Add "browser" field to package.json
brigand Aug 7, 2015
d7ba1de
Merge pull request #20 from brigand/patch-1
Aug 20, 2015
8fd5f7d
bumped version
Aug 20, 2015
69434a5
Added license
Aug 31, 2015
560bab0
Added license
Aug 31, 2015
c340197
Removed italic
Aug 31, 2015
5fca414
Updated deps
Aug 31, 2015
e0a48c1
Updated deps
Aug 31, 2015
f995905
Updated to 0.9.8
Aug 31, 2015
0f1bdfb
Compiled Firefox bug fixes
Sep 10, 2015
5e021b8
Upgraded to 0.9.9
Sep 10, 2015
745c5f8
Updated changelog
Sep 10, 2015
a35edbb
Fixes #25 which will cancel the debouncer when umounted. Also bumps J…
Oct 11, 2015
af643ac
Merge pull request #26 from binarykitchen/master
Oct 19, 2015
2afda5e
Updated deps
Oct 19, 2015
9b74186
Updated deps
Oct 19, 2015
f3bfef2
Updated version
Oct 19, 2015
bf29337
Move build-time npm packages to devDependencies
ahoym Feb 24, 2016
9200fb4
Merge pull request #34 from ahoym/organize-npm-packages
seethroughtrees Feb 24, 2016
5950111
adds check for existence of global navigator variable
Apr 27, 2016
bdb3927
Merge pull request #37 from AppSorcery/master
seethroughtrees Apr 27, 2016
ec4fe72
Updated package
Apr 27, 2016
60b14cf
Bumped version
Apr 27, 2016
9987f97
Pushed require react back to support older versions
Apr 27, 2016
2e994aa
Pushed require lodash back to support older if necessary
Apr 27, 2016
e4d4622
Merge pull request #38 from seethroughtrees/feature/update
seethroughtrees Apr 27, 2016
736b42c
Updated changelog
Apr 27, 2016
07f278c
Merge branch 'master' of github.com:seethroughtrees/react-ux-password…
Apr 27, 2016
cfdf638
fixes additional prerendering bug from getDOMNode()
Apr 30, 2016
81bb78d
Merge pull request #39 from AppSorcery/master
seethroughtrees Apr 30, 2016
d07e08a
Updated build
May 3, 2016
5d2c027
Bumped version
May 3, 2016
572bfcd
Updated changelog
May 3, 2016
625d7b1
New props for change the default lock icon color
pedroparra May 11, 2016
4193e6b
Updated README
seethroughtrees Jun 26, 2016
dbf112a
New props for change the default lock icon color
pedroparra May 11, 2016
9b39dfc
Merge branch 'master' of https://github.com/pedroparra/react-ux-passw…
pedroparra Jul 31, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes additional prerendering bug from getDOMNode()
Signed-off-by: Adam Taylor <[email protected]>
  • Loading branch information
Adam Taylor committed Apr 30, 2016
commit cfdf638e120bb802d8bf1a1cee0f22f7f175acd6
14 changes: 8 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,14 @@ var InputPassword = React.createClass({

// overcome problem with firefox resetting the input selection point
var that = this;
setTimeout(function() {
if (typeof navigator !== 'undefined' && !/Firefox/.test(navigator.userAgent)) return;
var elem = that.refs[that.props.id].getDOMNode();
elem.selectionStart = that.state.selectionStart;
elem.selectionEnd = that.state.selectionEnd;
}, 1);
if (typeof navigator !== 'undefined') {
setTimeout(function() {
if (!/Firefox/.test(navigator.userAgent)) return;
var elem = that.refs[that.props.id].getDOMNode();
elem.selectionStart = that.state.selectionStart;
elem.selectionEnd = that.state.selectionEnd;
}, 1);
}

return (
<div
Expand Down