Use React.ref.current()

This commit is contained in:
Uku Taht 2022-09-15 12:57:20 +03:00
parent ad39640475
commit be1b72895d

View File

@ -291,9 +291,9 @@ class LineGraph extends React.Component {
const extraClass = this.props.graphData && this.props.graphData.interval === 'hour' ? '' : 'cursor-pointer'
return (
<div className="graph-inner" ref={this.boundary}>
<div className="flex flex-wrap">
<TopStats query={query} metric={metric} updateMetric={updateMetric} topStatData={topStatData} tooltipBoundary={this.boundary} />
<div className="graph-inner">
<div className="flex flex-wrap" ref={this.boundary}>
<TopStats query={query} metric={metric} updateMetric={updateMetric} topStatData={topStatData} tooltipBoundary={this.boundary.current} />
</div>
<div className="relative px-2">
<div className="absolute right-4 -top-10 flex">