Vue 3 Release vue-click-outside-element@3.0.0
Key changes from Vue 2 to Vue 3
- New directive hook methods
bind
->beforeMount
|unbind ->
beforeUnmount` (official docs have unbind -> unmounted) - New and better types
- More guards with
instanceof
- Throws Error if you haven't provided a function
- Better tests:
-
- Lifecycle methods tested
-
addEventListener
andremoveEventListener
binds
Also with that there is a clear Roadmap
- To have
v-click-outside.element
andv-click-outside.component
modificators - Considering adding VTL and Vitest tests