mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 08:51:12 +00:00
Invert link 'target' check
This commit is contained in:
parent
a25f336d80
commit
b50b44cced
1 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,8 @@
|
|||
(not (.-ctrlKey e))
|
||||
(not (.-metaKey e))
|
||||
(not (.-shiftKey e))
|
||||
(not (contains? #{"_blank" "_self"} (.getAttribute el "target")))
|
||||
(or (not (.hasAttribute el "target"))
|
||||
(contains? #{"" "_self"} (.getAttribute el "target")))
|
||||
;; Left button
|
||||
(= 0 (.-button e))
|
||||
;; isContentEditable property is inherited from parents,
|
||||
|
|
|
|||
Loading…
Reference in a new issue