Skip to content

Commit

Permalink
check value original path on pieClicked - fixes apexcharts#2258
Browse files Browse the repository at this point in the history
  • Loading branch information
AdinoWayne committed Mar 3, 2023
1 parent c5785f7 commit 7209715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/charts/Pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,9 @@ class Pie {
Array.prototype.forEach.call(allEls, (pieSlice) => {
pieSlice.setAttribute('data:pieClicked', 'false')
let origPath = pieSlice.getAttribute('data:pathOrig')
pieSlice.setAttribute('d', origPath)
if (origPath) {
pieSlice.setAttribute('d', origPath)
}
})
elPath.attr('data:pieClicked', 'true')
}
Expand Down

0 comments on commit 7209715

Please sign in to comment.