Override pointer-events with important

This commit is contained in:
toasted-nutbread 2019-12-17 20:54:57 -05:00
parent ff1f256ffa
commit 4b5138b96e

View File

@ -321,7 +321,7 @@ function disableTransparentElement(elements, i, modifications) {
if (isElementTransparent(element)) {
const style = element.hasAttribute('style') ? element.getAttribute('style') : null;
modifications.push({element, style});
element.style.pointerEvents = 'none';
element.style.setProperty('pointer-events', 'none', 'important');
return i;
}
}