File tree Expand file tree Collapse file tree 3 files changed +19
-25
lines changed Expand file tree Collapse file tree 3 files changed +19
-25
lines changed Original file line number Diff line number Diff line change @@ -464,21 +464,18 @@ var ReactTooltip = function (_Component) {
464
464
465
465
var parentTop = 0 ;
466
466
var parentLeft = 0 ;
467
+ var currentParent = currentTarget . parentElement ;
467
468
468
- if ( this . props . checkParentTransform ) {
469
- var currentParent = currentTarget . parentElement ;
470
-
471
- while ( currentParent ) {
472
- if ( currentParent . style . transform . length > 0 ) {
473
- break ;
474
- }
475
- currentParent = currentParent . parentElement ;
469
+ while ( currentParent ) {
470
+ if ( currentParent . style . transform . length > 0 ) {
471
+ break ;
476
472
}
473
+ currentParent = currentParent . parentElement ;
474
+ }
477
475
478
- if ( currentParent ) {
479
- parentTop = currentParent . getBoundingClientRect ( ) . top ;
480
- parentLeft = currentParent . getBoundingClientRect ( ) . left ;
481
- }
476
+ if ( currentParent ) {
477
+ parentTop = currentParent . getBoundingClientRect ( ) . top ;
478
+ parentLeft = currentParent . getBoundingClientRect ( ) . left ;
482
479
}
483
480
484
481
var outsideTop = function outsideTop ( ) {
You can’t perform that action at this time.
0 commit comments