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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.getSelection) {
|
||||||
|
window.getSelection().removeAllRanges()
|
||||||
|
} else if (document.selection) {
|
||||||
|
document.selection.empty()
|
||||||
|
}
|
||||||
|
|
||||||
setItem({ itemId: item.id, act, strike })
|
setItem({ itemId: item.id, act, strike })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user