No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    can't open a modal immediately after closing another?

    Help
    2
    3
    649
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ssuess
      ssuess last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • ssuess
        ssuess last edited by

        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)
            },
        
        1 Reply Last reply Reply Quote 0
        • rstoenescu
          rstoenescu Admin last edited by

          this.$refs.helpModal.close(() => {
            this.$refs.bugModal.open()
          })
          

          Use the handler for close() method.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post