mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-25 13:11:48 +00:00
Changed zoom button element from <a> to <button>
This commit is contained in:
@@ -308,14 +308,19 @@ export class Chart extends React.PureComponent<ChartProps, {}> {
|
||||
render() {
|
||||
return (
|
||||
<div id="svgContainer">
|
||||
<div className="zoom">
|
||||
<a className="zoom-in" onClick={() => this.zoom(ZOOM_FACTOR)}>
|
||||
+
|
||||
</a>
|
||||
<a className="zoom-out" onClick={() => this.zoom(1 / ZOOM_FACTOR)}>
|
||||
−
|
||||
</a>
|
||||
</div>
|
||||
{this.props.enableZoom ? (
|
||||
<div className="zoom">
|
||||
<button className="zoom-in" onClick={() => this.zoom(ZOOM_FACTOR)}>
|
||||
+
|
||||
</button>
|
||||
<button
|
||||
className="zoom-out"
|
||||
onClick={() => this.zoom(1 / ZOOM_FACTOR)}
|
||||
>
|
||||
−
|
||||
</button>
|
||||
</div>
|
||||
) : null}
|
||||
<svg id="chartSvg">
|
||||
<g id="chart" />
|
||||
</svg>
|
||||
|
||||
Reference in New Issue
Block a user