Skip to content

Commit

Permalink
Merge pull request #3680 from AdinoWayne/main
Browse files Browse the repository at this point in the history
check value original path on pieClicked - fixes #2258
  • Loading branch information
junedchhipa committed Mar 3, 2023
2 parents c5785f7 + 7209715 commit d9c0455
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 d9c0455

Please sign in to comment.