mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Fixed click event not working on dragagble modals and inputs now are not draggable
This commit is contained in:
@@ -454,6 +454,12 @@
|
||||
}
|
||||
|
||||
let mousedown = (event) => {
|
||||
let target = event.target
|
||||
|
||||
if (target && target.nodeName === 'INPUT') {
|
||||
return
|
||||
}
|
||||
|
||||
let { clientX, clientY } = getPosition(event)
|
||||
|
||||
document.addEventListener('mousemove', mousemove)
|
||||
@@ -467,7 +473,7 @@
|
||||
cachedShiftX = this.shift.left
|
||||
cachedShiftY = this.shift.top
|
||||
|
||||
event.preventDefault()
|
||||
// event.preventDefault()
|
||||
}
|
||||
|
||||
let mousemove = (event) => {
|
||||
|
||||
Reference in New Issue
Block a user