Blur event

clipboard.png
the main problem at present is that the two red boxes above belong to the date below the location. I will take it back anywhere on the click page, but I will not take it back if I click on the location. I checked on the Internet that there is a css method, but this thing will fail as soon as my navigation is added. I have a headache

ask the boss for advice one or two!

Mar.16,2021

second floor correct solution, visual observation is your navigation event bubbling.


can't you even add click events to document?


it should be the button in the red box that prevents the event from bubbling, while your time plug-in usually delegates the listening event to document or window. After preventing bubbling, the delegated object cannot receive a click event with a red box. So you need to do special treatment to it

Menu