This commit is contained in:
Paul Frazee
2023-03-10 14:14:39 -06:00
parent 5accb619ac
commit b2300a8381
10 changed files with 277 additions and 258 deletions
+3
View File
@@ -117,8 +117,11 @@ function onPressInner(
shouldHandle = e ? !e.defaultPrevented : true
} else if (
!e.defaultPrevented && // onPress prevented default
// @ts-ignore Web only -prf
!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && // ignore clicks with modifier keys
// @ts-ignore Web only -prf
(e.button == null || e.button === 0) && // ignore everything but left clicks
// @ts-ignore Web only -prf
[undefined, null, '', 'self'].includes(e.currentTarget?.target) // let browser handle "target=_blank" etc.
) {
e.preventDefault()