How to do a link and close the popover



  • Hi, guys!

    How can I close my popover when I do a click? Or are there another code that I can use to do a dropdown menu on qbtn component?

    <q-item @click="$router.push('/preferences'), $refs.popover.close()">
        <q-item-main label="Preferences" />
    </q-item>
    
    <q-item item to="/company" @click="$refs.popover.close()">
        <q-item-main label="Company" />
    </q-item>
    

    Regards,

    Lucas Simon


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.