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

Edge Event error! #63

Closed
Lukasss93 opened this issue Jan 11, 2016 · 5 comments
Closed

Edge Event error! #63

Lukasss93 opened this issue Jan 11, 2016 · 5 comments

Comments

@Lukasss93
Copy link

This error is shown only on Microsoft Edge for Windows 10 Mobile.
It is a MUI bug or Edge bug?

SCRIPT5007: Unable to get property '_muiEventCache' of undefined or null reference
mui.min.js (1,7975)

Please answer me asap :)

@amorey
Copy link
Member

amorey commented Jan 11, 2016

@Lukasss93 Thanks for the bug report! I can take a look at this tonight.

@amorey
Copy link
Member

amorey commented Jan 12, 2016

@Lukasss93 I wasn't able to reproduce the error looking at the documentation site (https://www.muicss.com) on Edge/Win10. Are you seeing the error on the documentation site or with your own code?

I can see where the error would be triggered but I need to see an example to determine why a null value is being passed into the function instead of an HTML Element:
https://github.com/muicss/mui/blob/master/src/js/lib/jqLite.js#L117

@Lukasss93
Copy link
Author

Sorry, I forgot it!

Now this are the steps to replicate the problem:

  1. Open Microsoft Edge on Windows 10 PC
  2. Visit my web site on https://api.auraxstudios.com/
  3. Open Developer Tool F12
  4. Click on Emulation Tab
  5. Select on:
    Browser Profile: Windows 10 Mobile;
    User Agent String: Microsoft Edge - Windows 10 Mobile;
    Orientation: Landscape;
    Resolution: 1920x1080;
  6. Reload the page
  7. Click on Console Tab, ignore XHR bootstrap error, now click on a item menu.
  8. In console will be shown this error:
    SCRIPT5007: Unable to get property '_muiEventCache' of undefined or null reference
    mui.min.js (1,7975)

This bug is shown ONLY on this Browser WITH that parameters.
I have replicated it on PC (see top ^) and on my Nokia Lumia 1520 with Windows 10 Mobile Insider Preview 10.0.10586.63 Version 1511.

PS. On my Nokia Lumia 1520 works fine with Portrait and fail with this bug with Landscape... :( WTF

Screen:
1452622936902

Thank you for your support.

@amorey
Copy link
Member

amorey commented Jan 13, 2016

@Lukasss93 Thanks for your excellent bug report! I was able to use the Edge debugger to step through the code and identify the problem. It turns out that it was a bug in MUI triggered when mui.overlay('off') was called before mui.overlay('on'). The switch to Windows Mobile triggered the part of your code that called mui.overlay('off'). In any case, the bug is fixed in v.0.2.10:
https://www.muicss.com

Let me know if you're still seeing the error. BTW your site looks great!

@Lukasss93
Copy link
Author

Very thank you for your support! Now it works fine.

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

No branches or pull requests

2 participants