Closed hchiam closed 2 years ago
I'm getting Uncaught TypeError: el.computedStyleMap is not a function. from zindex.js https://caniuse.com/?search=computedStyleMap
Uncaught TypeError: el.computedStyleMap is not a function.
Falling back on window.getComputedStyle might help, and has better browser support: https://caniuse.com/?search=getComputedStyle
window.getComputedStyle
We could replace:
el.computedStyleMap().get('z-index').value
with
window.getComputedStyle(el).getPropertyValue('z-index')
I'm getting
Uncaught TypeError: el.computedStyleMap is not a function.
from zindex.js https://caniuse.com/?search=computedStyleMapFalling back on
window.getComputedStyle
might help, and has better browser support: https://caniuse.com/?search=getComputedStyleWe could replace:
with