Also prevent accessing graph tooltip DOM elements if they are gone
This commit is contained in:
@@ -53,6 +53,8 @@ function createGraphOptions({ yscale, period, highMark }) {
|
||||
tooltip: {
|
||||
enabled: false,
|
||||
external: function(context) {
|
||||
if (!tooltipElem.value) return;
|
||||
|
||||
const tooltipModel = context.tooltip;
|
||||
if (tooltipModel.opacity === 0) {
|
||||
tooltipElem.value.style.opacity = 0;
|
||||
|
||||
Reference in New Issue
Block a user