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