Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复“公式”下拉菜单按钮与微信公众号页面的下拉菜单按钮显示逻辑不一致问题 #4

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

Lns-XueFeng
Copy link
Contributor

作者你好,我今天在写微信公众号时发现需要编写数学公式在文章之中,但是微信公众号并没有提供这个功能,于是我找到了你编写的这个插件,但是安装完之后发现显示在“音频”旁边的“公式”下来菜单按钮和“音频”下拉菜单的按钮消失逻辑不一致,就是当我点击了“公式”按钮之后我不想点击显示出来的下拉菜单内的选项,而是想很自然的点击其他地方时下拉菜单自然消失,但是却不行,而我去尝试了“音频”下拉菜单按钮则可以,本着应该与微信公众号页面的显示与消失逻辑一致的原则,我为这个插件添加了一段代码来实现这个逻辑。也进行了测试,解决了这个问题。

@Lns-XueFeng
Copy link
Contributor Author

我这段代码添加上去以后,当点击了“公式”按钮显示下拉菜单之后,再点击文字进行编辑是下拉菜单是不会消失的,但是选取图片后并点击图片以及点击文章编辑部分之外的空白部分会让下拉菜单消失,这样就和微信公众号页面的显示与消失逻辑差不多。实际情况作者你可以在页面中测试。

@CPunisher CPunisher changed the base branch from dev to master February 16, 2024 09:32
@CPunisher CPunisher merged commit 1214f83 into latentcat:master Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants