Skip to content

Commit

Permalink
fix(Highcharts plugin): Replace deprecated event.path (#153)
Browse files Browse the repository at this point in the history
fix: Replaced deprecated event.path
Changed to event.composedPath()
  • Loading branch information
melikhov-dev authored Apr 19, 2023
1 parent a899a39 commit 23be4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function getFormattedValueWithSuffixAndPrefix(item) {

function isZoomResetButtonClick(event, chartContainer) {
let iterationIndex = 0;
let element = event.path[iterationIndex];
let element = event.composedPath()[iterationIndex];

while (element) {
if (element === chartContainer) {
Expand All @@ -104,7 +104,7 @@ function isZoomResetButtonClick(event, chartContainer) {
return true;
}

element = event.path[++iterationIndex];
element = event.composedPath()[++iterationIndex];
}

return false;
Expand Down

0 comments on commit 23be4a9

Please sign in to comment.