Remove another occurrence of data-* attributes
parent
9159b1ebf0
commit
8283859e99
|
@ -90,7 +90,6 @@ class AnnotationSpan extends React.Component {
|
||||||
|
|
||||||
renderLeftMarker(startTime, dygraph) {
|
renderLeftMarker(startTime, dygraph) {
|
||||||
const isEditing = this.props.mode === EDITING
|
const isEditing = this.props.mode === EDITING
|
||||||
const humanTime = `${new Date(+startTime)}`
|
|
||||||
const {isDragging, isMouseOver} = this.state
|
const {isDragging, isMouseOver} = this.state
|
||||||
const {annotation} = this.props
|
const {annotation} = this.props
|
||||||
|
|
||||||
|
@ -111,12 +110,7 @@ class AnnotationSpan extends React.Component {
|
||||||
const left = dygraph.toDomXCoord(startTime) + 16
|
const left = dygraph.toDomXCoord(startTime) + 16
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className={markerClass} style={{left: `${left}px`}}>
|
||||||
className={markerClass}
|
|
||||||
style={{left: `${left}px`}}
|
|
||||||
data-time-ms={startTime}
|
|
||||||
data-time-local={humanTime}
|
|
||||||
>
|
|
||||||
{showTooltip &&
|
{showTooltip &&
|
||||||
<AnnotationTooltip
|
<AnnotationTooltip
|
||||||
isEditing={isEditing}
|
isEditing={isEditing}
|
||||||
|
|
Loading…
Reference in New Issue