can't open a modal immediately after closing another?
-
I have a modal, inside of which I have a link that calls a method to close the existing modal and open another:
<a @click="openBugcloseHelp()">Feedback and app info</a>
The method looks like this:
openBugcloseHelp () { this.$refs.helpModal.close() this.$refs.bugModal.open() }
I can get one or the other of these commands to fire, but not both.
-
I can get it to work like this, but this seems like a hack:
openBugcloseHelp () { this.$refs.helpModal.close() var self = this setTimeout(function () { self.$refs.bugModal.open() }, 200) },
-
this.$refs.helpModal.close(() => { this.$refs.bugModal.open() })
Use the handler for close() method.