mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
Use React.ref.current()
This commit is contained in:
parent
ad39640475
commit
be1b72895d
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user