react-component / util

Common Utils For React Component
util.vercel.app
MIT License
623 stars 178 forks source link

Function isDom not working inside iframe #460

Open anhducc13 opened 1 year ago

anhducc13 commented 1 year ago

When I use isDom(node) inside an iframe, it always returns false. As a simple example (output in the console log): https://codesandbox.io/s/goofy-night-y5w6w9?file=/src/App.js

Version: rc-util: 5.29.3

Lib @rc-component/trigger Use this function and get wrong output with Tooltip, Popover, etc. in an iframe: https://github.com/react-component/trigger/blob/master/src/index.tsx#L235

not-2-t commented 1 year ago

same issue