You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: should allow different HTMLs sharing the same Id #1475 (#1476)
* fix: should allow different HTMLs sharing the same Id #1475
* chore: commmit changeset
* chore(release): bump version (#1477)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
在下面的示例中,p1 & p2 id 相同,p1 展示不出来了:
原因是 g-plugin-html-renderer 内部会使用 DOM API getElementById 查询已创建的元素,id 相同总会返回第一个。
antvis/G2#5390
解决方案是在生成的 DOM 结构上增加 data-id 保存唯一生成的 ID,格式为:
g-html-${entity}
,内部使用[data-id=]
属性选择器查询:可能会影响目前 G2 的集成测试中 tooltip 的部分。
The text was updated successfully, but these errors were encountered: