diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-11 17:32:46 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-11 17:32:46 +0200 |
| commit | c2f2d222ebeee0862bdeb54e49b86c3c5cd14ee3 (patch) | |
| tree | e395222cd0ea6139ccb69d2052368e523421603c | |
| parent | 88b5644a6c2594887d6f99f1cad72a1b58d60fe4 (diff) | |
handling links... in the handle... literally
| -rw-r--r-- | frontend/views/page/components/tile.handle.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/frontend/views/page/components/tile.handle.js b/frontend/views/page/components/tile.handle.js index 33243a7..9212dbb 100644 --- a/frontend/views/page/components/tile.handle.js +++ b/frontend/views/page/components/tile.handle.js @@ -70,15 +70,13 @@ const TileHandle = ({ tile, bounds, box, viewing, onMouseDown, onDoubleClick }) if (viewing && tile.href) { if (tile.href.indexOf('http') === 0) { return ( - <a href={tile.href} rel='noopener'> - <div - className={className} - onMouseDown={onMouseDown} - style={style} - > - {content} - </div> - </a> + <div + className={className} + style={style} + onClick={() => window.open(tile.href, '_blank')} + > + {content} + </div> ) } else { return ( |
