diff --git a/src/dom/DomUtil.js b/src/dom/DomUtil.js index 7024a793..a1b6a21a 100644 --- a/src/dom/DomUtil.js +++ b/src/dom/DomUtil.js @@ -297,7 +297,7 @@ export function preventOutline(element) { while (element.tabIndex === -1) { element = element.parentNode; } - if (!element || !element.style) { return; } + if (!element.style) { return; } restoreOutline(); _outlineElement = element; _outlineStyle = element.style.outline;