Node.contains() returns false on buttons

前端 未结 0 854
猫巷女王i
猫巷女王i 2021-02-19 01:09

This is plain vanilla JS, I\'m trying to make a pop-out div that closes when you click outside of it. For whatever reason, though, (e) => popoutNode.contains(e.target)<

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