Skip to content

Commit

Permalink
preventDefault() was added to prevent default click
Browse files Browse the repository at this point in the history
  • Loading branch information
retrozoid committed Jun 21, 2024
1 parent 08c2b5f commit ec862ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ func (e Node) Click() (err error) {
if (b.isTrusted && d(b.target)) {
a('')
} else {
b.preventDefault()
b.stopImmediatePropagation()
a('target overlapped')
}
Expand Down

0 comments on commit ec862ff

Please sign in to comment.