Giter VIP home page Giter VIP logo

Comments (6)

nicolas-cusan avatar nicolas-cusan commented on June 6, 2024

Hey @merobal, thank you for filing this issue.

I am pretty busy at the moment, but if you file a PR I will consider merging it.

Just out of curiosity: what code are you using to invoke the instance? What version iOS version has this error as window.matchMedia is supported since iOS/safari 5.

from breakpoint-helper.

merobal avatar merobal commented on June 6, 2024

We use the code I showed at #4

Not sure why the bug occurred, I was able to reproduce at online tools (which are slow and limited in free version) and unfortunately I don't have an old ios device nearby for further investigation.

I created a PR.

from breakpoint-helper.

merobal avatar merobal commented on June 6, 2024

Hi @nicolas-cusan did you have time to take a look at the PR?

from breakpoint-helper.

nicolas-cusan avatar nicolas-cusan commented on June 6, 2024

Hi @merobal I added some feedback to the PR. In any case I tested the library on iOS 13 via Browserstack and did not get any errors. Any chance you can provide more information about the iOS version?

My guess is, if there is an error in old browsers, that these versions do not support addEventListener on MediaQueryList and the old and now deprecated addListener needs to be used. Maybe you could try that test it and update the PR accordingly (will add this comment there too).

from breakpoint-helper.

nicolas-cusan avatar nicolas-cusan commented on June 6, 2024

Hi @merobal I just released a new version that catches the error. Please test it and report back. Thank you!

from breakpoint-helper.

merobal avatar merobal commented on June 6, 2024

Thank you! I tested the code that crashed with 1.0.3 and works good with 1.0.4 without try-catch at our side. 🎉

Also it didn't happen on first page-load, it happened when the user navigated to a new screen inside react scope (like after a "start screen" before a survey, then it crashed for some reason). Tested with virtual iphone x device and ios 13.0.

from breakpoint-helper.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.