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) {
464464
465465 var parentTop = 0 ;
466466 var parentLeft = 0 ;
467+ var currentParent = currentTarget . parentElement ;
467468
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 ;
476472 }
473+ currentParent = currentParent . parentElement ;
474+ }
477475
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 ;
482479 }
483480
484481 var outsideTop = function outsideTop ( ) {
You can’t perform that action at this time.
0 commit comments