remove selections on tip popup
This commit is contained in:
parent
1ab326ab01
commit
da668106a3
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue