Skip to content

Modal: closes if onmouseup event is outside of the modal #153

@ehni

Description

@ehni

Dear coreui-vue Team,

I think there might be a bug within the modal.

Before opening an issue:

What's wrong

When you open the modal and highlight some text the modal closes if the onmouseup event happens outside of the modal. This can lead to confusion when e.g. selecting some text.

The example modal in the official docs already show the behaviour: https://coreui.io/vue/docs/components/modal.html

Example video

modal_behaviour

Expected behaviour

When the onmousedown event happens inside the modal the onmouseup event should not close the modal, even if it happens outside of the modal.

The expected behaviour is e.g. shown in the vuematerial modal: https://vuematerial.io/components/dialog/

Example video

modal_expected_behaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions