mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-18 00:02:02 +03:00
perf: Add right click exception on link elements (#899)
This commit is contained in:
parent
942b1a9f65
commit
b8324d96d8
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ export default {
|
|||
const nodeName = event.target.nodeName.toLowerCase()
|
||||
const nodeType = event.target.getAttribute('type')
|
||||
|
||||
if (nodeName === 'textarea') return
|
||||
if (['textarea', 'a'].includes(nodeName)) return
|
||||
if (nodeName === 'input' && ['text', 'password', 'email', 'number'].includes(nodeType)) return
|
||||
|
||||
event.preventDefault()
|
||||
|
|
Loading…
Add table
Reference in a new issue