We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1daf11 commit f148f93Copy full SHA for f148f93
resources/js/components/ui/Modal/Modal.vue
@@ -57,13 +57,12 @@ const portal = computed(() => modal.value ? `#portal-target-${modal.value.id}` :
57
function open() {
58
if (!modal.value) modal.value = portals.create('modal');
59
60
+ escBinding.value = keys.bindGlobal('esc', dismiss);
61
+
62
nextTick(() => {
63
mounted.value = true;
64
- nextTick(() => {
- visible.value = true;
65
- escBinding.value = keys.bindGlobal('esc', dismiss);
66
- });
+ nextTick(() => visible.value = true);
67
});
68
}
69
0 commit comments