Skip to content

Commit a577012

Browse files
committed
3.1.3
1 parent 9f1cb9b commit a577012

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Change Log
22

3+
### 3.1.3 (2016/08/01 23:53 +00:00)
4+
- [#164](https://github.com/wwayne/react-tooltip/pull/164) Fix for delayShwo #163 (@wwayne)
5+
36
### 3.1.2 (2016/07/30 01:38 +00:00)
47
- [#162](https://github.com/wwayne/react-tooltip/pull/162) Fix for #158, getposition error (@wwayne)
58

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-tooltip",
3-
"version": "3.1.2",
3+
"version": "3.1.3",
44
"description": "react tooltip component",
55
"main": "dist/index.js",
66
"scripts": {

standalone/react-tooltip.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ var ReactTooltip = (0, _staticMethods2.default)(_class = (0, _windowListener2.de
591591
}
592592
};
593593

594+
this.clearTimer();
594595
if (delayShow) {
595-
clearTimeout(this.delayShowLoop);
596596
this.delayShowLoop = setTimeout(updateState, delayTime);
597597
} else {
598598
updateState();
@@ -613,18 +613,18 @@ var ReactTooltip = (0, _staticMethods2.default)(_class = (0, _windowListener2.de
613613

614614
if (!this.mount) return;
615615

616-
var resetState = function resetState(resetPlace) {
616+
var resetState = function resetState() {
617617
_this7.setState({
618618
show: false
619619
});
620620
_this7.removeScrollListener();
621621
};
622622

623+
this.clearTimer();
623624
if (delayHide) {
624-
this.clearTimer();
625625
this.delayHideLoop = setTimeout(resetState, parseInt(delayHide, 10));
626626
} else {
627-
resetState(true);
627+
resetState();
628628
}
629629
}
630630

standalone/react-tooltip.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)