diff --git a/lib/clicks.js b/lib/clicks.js index 0aaec099..41046677 100644 --- a/lib/clicks.js +++ b/lib/clicks.js @@ -5,5 +5,7 @@ export function ignoreClick (e) { // the target is an interactive element ['TEXTAREA', 'BUTTON', 'A', 'INPUT', 'FORM'].includes(e.target.tagName.toUpperCase()) || // the target is an interactive element - e.target.class === 'upvoteParent' || e.target.class === 'pointer' + e.target.class === 'upvoteParent' || e.target.class === 'pointer' || + // the click is caused by a selection + window.getSelection()?.toString() }