Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@mantine/core] Handle undefined value in matchMedia #7360

Merged

Conversation

Benjaminsson
Copy link
Contributor

This PR broke my testing setup. In some cases window.matchMedia("(prefers-color-scheme: dark)") returns undefined and breaks my tests. Optional chaining solves it.

@rtivital rtivital merged commit 56b7ce5 into mantinedev:master Jan 16, 2025
1 check passed
@rtivital
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants