remove selections on tip popup

This commit is contained in:
keyan 2021-10-30 12:11:12 -05:00
parent 1ab326ab01
commit da668106a3
1 changed files with 6 additions and 0 deletions

View File

@ -99,6 +99,12 @@ export default function UpVote ({ item, className }) {
return
}
if (window.getSelection) {
window.getSelection().removeAllRanges()
} else if (document.selection) {
document.selection.empty()
}
setItem({ itemId: item.id, act, strike })
}
}