Error in ipad

1 Answer 211 Views
MediaQuery
Ilan
Top achievements
Rank 1
Bronze
Iron
Veteran
Ilan asked on 10 Apr 2022, 11:48 AM

I'm getting the error:

Exception: 
Microsoft.JSInterop.JSException: this.mediaQueryList.addEventListener is not a function. (In 'this.mediaQueryList.addEventListener("change",this.onMediaChange)', 'this.mediaQueryList.addEventListener' is undefined)
value

On ipad.

Is there a fix for it?

 

Marin Bratanov
Telerik team
commented on 11 Apr 2022, 06:00 AM

Does this happen on other browsers? Does clearing the cache (and the other steps from this article) help?
Patrick
Top achievements
Rank 1
commented on 28 Apr 2022, 01:33 PM

Hi Martin,

I have the same problem, happening at a customer using Mobile Safari 12.1.

Already removed the 'defer' attribute and change the order.

    <script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js"></script>
    <script src="_framework/blazor.server.js" autostart="false"></script>

I've attached the call stack, maybe it helps.

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 03 May 2022, 09:19 AM

Hello Ilan,

We have an open bug report - The MediaQuery throws an error on iPad Safari. I can see that you have voted for it, and I would encourage you to click the Follow button to subscribe for email notifications on status updates. This is the best way to be notified when the bug fix will be planned and the release it will be live. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
MediaQuery
Asked by
Ilan
Top achievements
Rank 1
Bronze
Iron
Veteran
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or