From 23be4a96479820a69534098100140cd9a3fad45a Mon Sep 17 00:00:00 2001 From: Andrey Melikhov Date: Wed, 19 Apr 2023 17:01:09 +0300 Subject: [PATCH] fix(Highcharts plugin): Replace deprecated event.path (#153) fix: Replaced deprecated event.path Changed to event.composedPath() --- src/plugins/highcharts/renderer/helpers/config/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/highcharts/renderer/helpers/config/config.js b/src/plugins/highcharts/renderer/helpers/config/config.js index c3b26f53..ab78799b 100644 --- a/src/plugins/highcharts/renderer/helpers/config/config.js +++ b/src/plugins/highcharts/renderer/helpers/config/config.js @@ -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) { @@ -104,7 +104,7 @@ function isZoomResetButtonClick(event, chartContainer) { return true; } - element = event.path[++iterationIndex]; + element = event.composedPath()[++iterationIndex]; } return false;