diff options
Diffstat (limited to 'src/components/ListItem.js')
-rw-r--r-- | src/components/ListItem.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ListItem.js b/src/components/ListItem.js index 7209887..8179c81 100644 --- a/src/components/ListItem.js +++ b/src/components/ListItem.js @@ -19,7 +19,10 @@ function ListItem(props) { paddingTop: "1em", paddingBottom: "1em" }} - onClick={() => (window.location = `/${props._id}`)} + onClick={() => { + if (window.getSelection().type !== "Range") + window.location = `/${props._id}`; + }} > <td>{dateFormat(props.timestamp, "isoUtcDateTime")}</td> <td> |