mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-08 12:32:27 +03:00
fix: clickoutside event listener change capturing to bubbling
This commit is contained in:
@@ -11,9 +11,9 @@ export default {
|
||||
binding.value()
|
||||
}
|
||||
}
|
||||
document.addEventListener('click', el['@clickoutside'], true)
|
||||
document.addEventListener('click', el['@clickoutside'], false)
|
||||
},
|
||||
unbind (el) {
|
||||
document.removeEventListener('click', el['@clickoutside'], true)
|
||||
document.removeEventListener('click', el['@clickoutside'], false)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
}"
|
||||
v-clickoutside="closePopup">
|
||||
<div class="mx-input-wrapper"
|
||||
@click="showPopup">
|
||||
@click.stop="showPopup">
|
||||
<input
|
||||
:class="inputClass"
|
||||
:name="inputName"
|
||||
|
||||
Reference in New Issue
Block a user