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

Add fallback for event listener in Media Query List #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

josesdev
Copy link

@josesdev josesdev commented Oct 2, 2020

The purpose of this PR is to fix the bug with Safari < 14 using addEventListener() method in a MediaQueryList object.

The idea is to bring Safari < 14 support and backward compatibility using the addListener method as a fallback when addEventListener is not available to use.

This PR will fix this issue #3 and won't affect the current functionality.

Related info: mdn/sprints#858

@kazzkiq
Copy link
Owner

kazzkiq commented Oct 9, 2020

Thanks for your contribution, @jokerwin!

It looks like tests are broken (it isn't your PR, things were broken also in master), I would like to fix that first (#5) before merging PRs.

@AlexandraKlein
Copy link

Any update on when this will be merged?

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.

3 participants