Open tao-cumplido opened 2 years ago
The ShadowDOM support added by @LeaVerou is broken in version 3.33.2. The cause is the call to getBoundingClientRect introduced in this commit https://github.com/apexcharts/apexcharts.js/commit/cf0d2cf98fe544ced23d4cb4a03fc3294cccd8a7, which fails when el is a document fragment node.
getBoundingClientRect
el
ApexCharts
No error I guess
Uncaught (in promise) TypeError: t.getBoundingClientRect is not a function
https://codepen.io/leaverou/pen/WNEXzBe
Still broken in 3.35.0
Description
The ShadowDOM support added by @LeaVerou is broken in version 3.33.2. The cause is the call to
getBoundingClientRect
introduced in this commit https://github.com/apexcharts/apexcharts.js/commit/cf0d2cf98fe544ced23d4cb4a03fc3294cccd8a7, which fails whenel
is a document fragment node.Steps to Reproduce
ApexCharts
instance with an element inside a ShadowDOM, e.g. of a custom web component.Expected Behavior
No error I guess
Actual Behavior
Uncaught (in promise) TypeError: t.getBoundingClientRect is not a function
Reproduction Link
https://codepen.io/leaverou/pen/WNEXzBe