@progress/kendo-charts 2.11.1 → 2.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es/chart/chart.js
CHANGED
|
@@ -46,6 +46,7 @@ const FOCUS = "focus";
|
|
|
46
46
|
const BLUR = "blur";
|
|
47
47
|
const MOUSEMOVE_DELAY = 20;
|
|
48
48
|
const NO_DATA_OVERLAY_TOP_CLASS = "k-chart-overlay-top";
|
|
49
|
+
const frameworkElement = el => /^kendo-/i.test(el.nodeName) || el.nodeType === 8;
|
|
49
50
|
|
|
50
51
|
class Chart {
|
|
51
52
|
constructor(element, userOptions, themeOptions, context = {}) {
|
|
@@ -107,7 +108,9 @@ class Chart {
|
|
|
107
108
|
const child = element.childNodes[i];
|
|
108
109
|
|
|
109
110
|
if (!hasClasses(child, "k-chart-overlay")) {
|
|
110
|
-
|
|
111
|
+
if (!frameworkElement(child)) {
|
|
112
|
+
element.removeChild(child);
|
|
113
|
+
}
|
|
111
114
|
} else {
|
|
112
115
|
// this is necessary if the overlay is rendered server-side, e.g. in blazor
|
|
113
116
|
// but drawing the surface clears the contents of the element
|
|
@@ -46,6 +46,7 @@ const FOCUS = "focus";
|
|
|
46
46
|
const BLUR = "blur";
|
|
47
47
|
const MOUSEMOVE_DELAY = 20;
|
|
48
48
|
const NO_DATA_OVERLAY_TOP_CLASS = "k-chart-overlay-top";
|
|
49
|
+
const frameworkElement = el => /^kendo-/i.test(el.nodeName) || el.nodeType === 8;
|
|
49
50
|
|
|
50
51
|
class Chart {
|
|
51
52
|
constructor(element, userOptions, themeOptions, context = {}) {
|
|
@@ -107,7 +108,9 @@ class Chart {
|
|
|
107
108
|
const child = element.childNodes[i];
|
|
108
109
|
|
|
109
110
|
if (!hasClasses(child, "k-chart-overlay")) {
|
|
110
|
-
|
|
111
|
+
if (!frameworkElement(child)) {
|
|
112
|
+
element.removeChild(child);
|
|
113
|
+
}
|
|
111
114
|
} else {
|
|
112
115
|
// this is necessary if the overlay is rendered server-side, e.g. in blazor
|
|
113
116
|
// but drawing the surface clears the contents of the element
|