Skip to content

How might we distinguish between click-outside and dragged-outside? #450

Description

@topada

👋 Hi there,
I’ve got a form with a couple of input fields and textareas inside a modal. The modal has the v-click-outside directive setup to close the modal. This behaviour is well accepted by our users. However, there is one problem: if the user tries to select the text inside a prefilled input field and overshoots the input field as well as the modal and the pointer stops outside the modal, the modal is consequently closed.

Is there an elegant way to check whether the Pointer Event was the result of a dragging event?

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