You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#4340
`mdc-dom` implements a `matches()` method that wasn't used everywhere. These custom implementations prevented some SSR usage of the material-components library. This commit removes all the custom implementations.
I removed some tests that were testing a now removed method, and I handled to make the other pass.
PS: This is my first contribution here, I hope I did everything right!
BREAKING CHANGE: `getMatchesProperty()` has been removed from `@material/ripple/util`. Use `matches()` from `@material/dom/ponyfill` instead.
Fixes#4340
`mdc-dom` implements a `matches()` method that wasn't used everywhere. These custom implementations prevented some SSR usage of the material-components library. This commit removes all the custom implementations.
I removed some tests that were testing a now removed method, and I handled to make the other pass.
PS: This is my first contribution here, I hope I did everything right!
BREAKING CHANGE: `getMatchesProperty()` has been removed from `@material/ripple/util` and `@material/tab-scroller/util`. Use `matches()` from `@material/dom/ponyfill` instead.
We added an
mdc-dom
package with a commonmatches
function, but we still have 2 packages using their own version: Ripple and Tab Scroller.Additionally, these packages use a version which is run eagerly ahead-of-time, which poses problems in SSR scenarios. (See material-components/material-components-web-react#654)
Edit: Only Ripple actually runs the function eagerly, although both work in the same manner.
We should update these components to use
mdc-dom
and remove the duplicate functions.The text was updated successfully, but these errors were encountered: