Skip to content

Allow Ref<Vue> for useOnOutsidePress #1014

@johannes-z

Description

@johannes-z

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions