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

    noRouteDismiss don't work when using QDialog as a plugin

    Framework
    1
    1
    140
    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.
    • J
      jraez last edited by

      I stumble upon an issue when trying to have semi-persistent dialog. I want them to persist on user actions but not on route change.

      There is a no-route-dismiss props for that. It works when it’s a “plain” component like q-dialog(v-model="alert" no-backdrop-dismiss no-esc-dismiss)... or explicitly like q-dialog(v-model="alert" no-backdrop-dismiss no-esc-dismiss :no-route-dismiss="false")... but not when used as a plugin like that:

      this.$q.dialog({
              noBackdropDismiss: true,
              noEscDismiss: true,
              noRouteDismiss: false,
              title: 'test-route-change-dismiss',
              message: 'test-route-change-dismiss'
            })
      

      Is it a bug or something I’m doing wrong ?

      Here a codepen to illustrate the issue

      https://codepen.io/jraez/pen/XWbobqy

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