Hide an expanded menu when clicking outside of the container: how to use code snipet

后端 未结 0 596
北海茫月
北海茫月 2020-12-23 21:28

I have a menu that open a sub-menu section onclick (let\'s name the container: "sub-menu"). I would like "sub-menu" to disapear if the user click outside

相关标签:
回答
  • 消灭零回复
提交回复
热议问题