Skip to content

Modal close properties does not work as expected #1466

@pflirae

Description

@pflirae

Overview of the problem

Oruga version: [0.12.0]
Vuejs version: [3.5.24]
OS/Browser: any browser
Theme-Bulma: [0.8.0]

Description

The Modal props closable, close-on-outside, close-on-escape are not working as expected, no matter if they are true or false, the observed behaviour is that it allways act as if the value is true, ignoring the false value.

Expected behavior

Expected the documented behaviour, that is, when the value of the prop is false, prevent the efect of the prop, when true allow the efect of the prop.

Actual behavior

No matter if the prop has value true or false, it allways act as a true value.

Steps to reproduce

Just create a modal with the three props and assign the false value to each one, when showing the modal try escape or click aoutside the modal, it allways close, should not close if the prop values are false.

Here is a code example:
<OModal v-model:active="despliega_modal" width="56rem" :closable="false" :close-on-outside="false" :close-on-escape="false" > ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions