dom-align icon indicating copy to clipboard operation
dom-align copied to clipboard

fix: Ensure that the ancestor element is in the dom tree

Open rainke opened this issue 1 year ago • 2 comments

some lib(https://www.npmjs.com/package/vue-frag)will create fake parentNode for element

rainke avatar Sep 01 '23 08:09 rainke

需要一个出错例子。

另外直接在 getVisibleRectForElement 函数开头判断是不是就行了,不进入 while

yiminghe avatar Sep 01 '23 11:09 yiminghe

https://github.com/rainke/align-demo

vue-frag 导致其 child 的 parentNode 是一个不在文档流的元素, 需要跳过继续找祖先元素

rainke avatar Sep 01 '23 14:09 rainke