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

    Diaglog won't close after page is refreshed while dialog is open

    Help
    3
    3
    682
    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.
    • W
      wesleysmith1 last edited by

      After the dialog is opened, and the page refreshed, the dialog will not close if opened again. It won’t close by clicking the space around the dialog or the buttons on the dialog.

      Here I declare the contents of the dialog:

       let dialogContent = {
            title: 'Default Settings',
            form: {
              header1: {
                type: 'heading',
                label: 'Sort courses by: '
              },
              option: {
                type: 'radio',
                model: 'opt1',
                items: [
                  {label: 'Course', value: 'opt1'},
                  {label: 'Section', value: 'opt2'}
                ]
              },
              header2: {
                type: 'heading',
                label: 'Select the default number of rows in tables: '
              },
              slider: {
                type: 'slider',
                label: 'Default rows displayed',
                min: 5,
                max: 15,
                step: 5,
                withLabel: true,
                model: 5,
                color: 'primary'
              }
            },
            buttons: [
              'Cancel',
              {
                label: 'Save',
                handler (data) {
                  Toast.create({
                    html: 'Defaults Updated',
                    color: 'white',
                    bgColor: 'grey'
                  })
                }
              }
            ]
       }
      

      and here I create the dialog:

       const dialog = Dialog.create(
            dialogContent
       )
      1 Reply Last reply Reply Quote 0
      • T
        trsiddiqui1989 last edited by

        Having the same issue, I did a temporary fix by adding a close button and hiding and showing again with jquery.

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

          Hi @wesleysmith1 I have the same issue, I already spoked to Razvan about that, it should be fixed in v0.15.

          Note: You can close Dialog/Modal by clicking back button in your browser.

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