react-overlays icon indicating copy to clipboard operation
react-overlays copied to clipboard

tagName is undefined

Open grydstedt opened this issue 8 years ago • 3 comments

The siblings crawl done by the modal manager crashes sometimes in Safari. Scripts and libraries will add all sort of stuff into the body and by default the modal manager will use the body as container. This sometimes ends up crashing in safari.

Specfically: let isHidable = ({ nodeType, tagName }) => nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1;

tagName here is undefined sometimes. Also trying to access siblings like cross-origin iframes will throw a security error. Perhaps we can check if tagName is defined here?

grydstedt avatar Dec 08 '16 21:12 grydstedt

feel free to PR this

taion avatar Mar 07 '17 01:03 taion

Hey @taion, I would like to submit a PR for this issue. Although, I wanted to confirm that we're going to ignore those containers without tagName and not hide them.

pnkapadia6 avatar Mar 20 '18 22:03 pnkapadia6

i forget what this was now... it's possible we already fixed this, too

taion avatar Mar 20 '18 23:03 taion