This is a migrated thread and some comments may be shown as answers.

Menu inside ResponsivePanel won't stay open in mobile

2 Answers 35 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Kevin F
Top achievements
Rank 1
Kevin F asked on 23 Jan 2020, 05:17 PM

I have the following Menu inside a ResponsivePanel:

@(Html.Kendo().ResponsivePanel()
    .Name("navPanel")
    .Breakpoint(768)
    .Orientation("top")
    .AutoClose(false)
    .HtmlAttributes(new {@class = "navbar-left"})
    .Content(Html.Kendo().Menu()
        .Name("menu")
        .HtmlAttributes(new { @class = "row"})
        .Items(items =>
        {
            ... various items ...
        }).ToHtmlString())
    )

 

Everything works great in a large view, but when I switch to mobile, the panel does it's thing and shows the hamburger, but when I click, the menu won't stay open.  It opens briefly then closes.

I've noticed the following "warning" in the browser console:
Ignoring ‘preventDefault()’ call on event of type ‘touchstart’ from a listener registered as ‘passive’.

Does anybody have any ideas or experience with this?

Thanks!

Kevin

 

2 Answers, 1 is accepted

Sort by
0
Kevin F
Top achievements
Rank 1
answered on 24 Jan 2020, 06:28 PM

found the solution here:

https://www.telerik.com/forums/immediate-close-on-mobile-devices

0
Accepted
Dimitar
Telerik team
answered on 27 Jan 2020, 06:58 AM

Hello Kevin,

The issue should not occur with  the latest version of ASP.NET MVC, as this was fixed with the 2019 R2 SP1 release:

Could you confirm what version of the package are you using when replicating the issue?

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Tags
Menu
Asked by
Kevin F
Top achievements
Rank 1
Answers by
Kevin F
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or