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

页面多次创建emoji面板不能正常显示 #15

Open
lanomw opened this issue Mar 4, 2021 · 0 comments
Open

页面多次创建emoji面板不能正常显示 #15

lanomw opened this issue Mar 4, 2021 · 0 comments

Comments

@lanomw
Copy link

lanomw commented Mar 4, 2021

项目中创建多个emoji,插件内部每次创建的emoji面板的id都是一样的

image

  • 问题代码及解决方法:
    • 这里的所有每次创建时都会进行重置
      image
    • 更改:
      // 索引存在则不重置为0
      if (window.emoji_index === undefined) {
          window.emoji_index = 0;
      }
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

No branches or pull requests

1 participant