lanomw

Results 3 issues of lanomw

# emoji面板打开按钮内包含子元素,则点击子元素不会触发emoji面板打开的事件 ![image](https://user-images.githubusercontent.com/47975101/109918011-44502e00-7cf1-11eb-9ec1-433ad15c6c08.png) - 代码修改(大概位于203行):点击按钮的子元素也需要打开emoji面板 ![image](https://user-images.githubusercontent.com/47975101/109918801-8463e080-7cf2-11eb-9563-0e98055a45a8.png)

# 存在懒加载页面时,emoji面板位置显示异常 ![image](https://user-images.githubusercontent.com/47975101/109908594-87a1a100-7cdf-11eb-8fa5-72586b1437c5.png) - 这里的图片为懒加载,图片加载完成后emoji面板位置没有进行更新 - 期望在每次打开面板时重新更新下位置,下面是我的更改代码 - ```js // 在源码`$(document).on()`内,大概位于197行 if (target === $(btn)[0]) { var _panelTop,_panelLeft; // 重新计算位置。防止收到图片懒加载之类的影响 switch (that.options.position) { case 'topLeft': _panelTop = $(btn).offset().top - $('#emoji_container_'...

# 项目中创建多个emoji,插件内部每次创建的emoji面板的id都是一样的 ![image](https://user-images.githubusercontent.com/47975101/109908063-92a80180-7cde-11eb-99f6-fbb66d5aee9d.png) - 问题代码及解决方法: - 这里的所有每次创建时都会进行重置 ![image](https://user-images.githubusercontent.com/47975101/109908136-ace1df80-7cde-11eb-8c73-077803750a3e.png) - 更改: ````js // 索引存在则不重置为0 if (window.emoji_index === undefined) { window.emoji_index = 0; } ````