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

    Cannot open modal with single click followed by no response

    Help
    1
    3
    835
    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.
    • T
      Tao last edited by Tao

      The first click after loading the page is fine. Then I need to double click to open it. After a few times, clicking the button to open the modal is not working at all until a couple minutes, and then I can double click to open it. Not sure if something is wrong here.

      In parent:

      <router-link class=“link-with-bg” v-on:click.native=“showSignUpModal” to="/"> Sign In</router-link>
      <signup-modal v-bind:display=“signUpModalDisplay”></signup-modal>

      In child:

      <template id=“login-template”>
      <q-modal v-model=“show” :content-css="{padding: ‘20px’}">
      <div class=“q-display-1 q-mb-md”>Modal</div><p>This one gets displayed from .</p>
      <q-btn color=“orange” @click=“show = false” label=“Close” />
      </q-modal>
      </template>

      <script>

      import {QModalLayout} from 'quasar'
      
      export default {
          
          props: {
              display: {
                  type: Boolean,
                  required: true
              }
          },
          data: function () {
              return {
                  show: null
              }
          },     
          computed: {
              
          },
          components:{
              QModalLayout,
          },
          methods: {
              
          },
          watch: {
              display: function(){
                  this.show = this.display
              }
          }
      }
      

      </script>

      1 Reply Last reply Reply Quote 0
      • T
        Tao last edited by

        I also tried QDialog, and found the same issue. Also used QBtn to replace the router-link, still have the same problem.

        1 Reply Last reply Reply Quote 1
        • T
          Tao last edited by

          After I moved the Modal into the parent page, the issue is gone. Not sure why I cannot put it into a separate component page.

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