Skip to content

Commit

Permalink
continue fix for apexcharts#4750; tooltip missing in safari
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Oct 11, 2024
1 parent cbeb9cb commit 3521cbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions src/modules/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,9 @@ export default class Core {
gl.dom.elLegendWrap = document.createElement('div')
gl.dom.elLegendWrap.classList.add('apexcharts-legend')

gl.dom.elLegendContainer = document.createElement('div')
Object.assign(gl.dom.elLegendContainer.style, {
position: 'relative',
})
gl.dom.elLegendWrap.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml')
gl.dom.elLegendForeign.appendChild(gl.dom.elLegendWrap)

gl.dom.elLegendContainer.setAttribute(
'xmlns',
'http://www.w3.org/1999/xhtml'
)
gl.dom.elLegendContainer.appendChild(gl.dom.elLegendWrap)
gl.dom.elLegendForeign.appendChild(gl.dom.elLegendContainer)
gl.dom.Paper.node.appendChild(gl.dom.elLegendForeign)

gl.dom.elGraphical = gl.dom.Paper.group().attr({
Expand Down
1 change: 0 additions & 1 deletion src/modules/helpers/Destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export default class Destroy {

domEls.elWrap = null
domEls.elGraphical = null
domEls.elLegendContainer = null
domEls.elLegendWrap = null
domEls.elLegendForeign = null
domEls.baseEl = null
Expand Down

0 comments on commit 3521cbe

Please sign in to comment.