Skip to content

How do I close a modal? #321

@roelVerdonschot

Description

@roelVerdonschot

Using de useModal() function in setup() is there a way to close the modal from inside the component manually? i tried to use $emit('close') and $emit('confirm') but this did not do anything.

setup(props) { return { category_modal: useModal({ component: CategoryModal }) } },

Version

"vue-final-modal": "^4.0.0"
"vue": "^3.2.0",

OS

Mac

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions