2
0
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:
mxie
2019-01-24 10:26:23 +08:00
parent 479fb8fd7a
commit 054758e92c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
View File
@@ -10,7 +10,7 @@
}"
v-clickoutside="closePopup">
<div class="mx-input-wrapper"
@click="showPopup">
@click.stop="showPopup">
<input
:class="inputClass"
:name="inputName"