Click event execution of div on the outermost layer of vue and how to prevent other click events from being executed


whether the click event in the blue area causes the pop-up window in the upper right corner to close
the outermost click event adds the anti-bubbling behavior touchstart.stop= "closeMenu" or does not work by clicking on the blue area to close the pop-up window in the upper right corner and the click event in the lower layer at the same time. How should it be stopped?

Jun.30,2022

@ click.capture.stop


idea:
bind events on the outermost div Note that menus cannot be included in this div
menu status open = true; Click the non-menu part to close the menu open = false; to block capture at this time;
menu status open = false; do nothing at this time

do something like this:

<div @click.capture = myClick($event)></div>
//.capture 

js:
myClick:(event){
    if(this.open){
        event.preventDefault();//stop 
        this.open = false;//
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bcd12e-30b62.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bcd12e-30b62.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?