Releases: ColtHands/Vue-Click-Outside-Element
Releases · ColtHands/Vue-Click-Outside-Element
3.1.2
3.1.0
Adding Vite instead of webpack
- Adding build with Vite instead of webpack in addition to already existing dev server
- Removing one of two examples
- Re-doing clickOutside fn, to take
this
instead of relying onelement.clickOutside
to be there. - Removing webpack and other unused files and deps
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