This repository was archived by the owner on Jan 14, 2025. It is now read-only.
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
ClientRect is not defined #853
Closed
Description
I've noticed that v.0.12 uses new ClientRect()
in some places...
Well, I've been attempting to implement mdc-slider
in React, and tried returning a new ClientRect()
and got a ClientRect is not defined
error.
Googling took me to: microsoft/TypeScript#18615
It seems that while TypeScript's typings still have ClientRect
, Chrome has replaced it with DOMRect
.
Further, DOMRect
itself is experimental according to MDN: https://developer.mozilla.org/en-US/docs/Web/API/DOMRect
I'm not sure if these are getting properly polyfilled by Webpack and Babel either.
Was there a specific reason to switch from the explicit { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }
to new ClientRect()
?
Metadata
Metadata
Assignees
Labels
No labels