Created
June 30, 2025 08:41
-
-
Save xinglongjizi/0cb29c2b646a647b8a5378bdc4c5e48e to your computer and use it in GitHub Desktop.
通过click触发的popover,由于滚动事件不会触发popover关闭,处理方案
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| popover打开时,给它的trigger元素增加一个特殊的class类名 | |
| 某个元素的scroll事件需要关闭这个popover | |
| 那么在滚动事件中,document获取这个trigger的元素,触发它的click() | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment