Allow Ref<Vue> for useOnOutsidePress
johannes-z opened this issue · 0 comments
johannes-z commented
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.