pikax / vue-composable

Vue composition-api composable components. i18n, validation, pagination, fetch, etc. +50 different composables
https://pikax.me/vue-composable/
MIT License
1.17k stars 67 forks source link

Allow Ref<Vue> for useOnOutsidePress #1014

Open johannes-z opened 2 years ago

johannes-z commented 2 years ago

When using a ref on a Vue component, useOnOutsidePress throws an error, because the Vue component doesn't have a method called contains. The function should check if element.value.$el exists.