File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -569,10 +569,11 @@ class ReactTooltip extends React.Component {
569
569
if ( ReactTooltip . supportedWrappers . indexOf ( Wrapper ) < 0 ) {
570
570
Wrapper = ReactTooltip . defaultProps . wrapper
571
571
}
572
+ const wrapperClassName = [ tooltipClass , extraClass ] . filter ( Boolean ) . join ( ' ' )
572
573
573
574
if ( html ) {
574
575
return (
575
- < Wrapper className = { ` ${ tooltipClass } ${ extraClass } ` }
576
+ < Wrapper className = { wrapperClassName }
576
577
id = { this . props . id }
577
578
ref = { ref => this . tooltipRef = ref }
578
579
{ ...ariaProps }
@@ -581,7 +582,7 @@ class ReactTooltip extends React.Component {
581
582
)
582
583
} else {
583
584
return (
584
- < Wrapper className = { ` ${ tooltipClass } ${ extraClass } ` }
585
+ < Wrapper className = { wrapperClassName }
585
586
id = { this . props . id }
586
587
{ ...ariaProps }
587
588
ref = { ref => this . tooltipRef = ref }
You can’t perform that action at this time.
0 commit comments