Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: interactive option for shadow dom (#913)
When tippy content is inside a shadow dom, the `interactive` option is not working. The reason is > Events that happen in shadow DOM have the host element as the target, when caught outside of the component. the popper is inside the host, so `popper.contains(target)` will always return false. see https://javascript.info/shadow-dom-events by using `event.composedPath` instead of the `event.target`, it will get the actual target and fix this bug. see https://stackoverflow.com/questions/39245488/event-path-is-undefined-running-in-firefox/39245638#39245638
- Loading branch information