Skip to content

Commit e2401ff

Browse files
KB Article - Menu items are not closing on hover (#112)
* chore(menu): initial commit of kb article regarding not closing menu items on hover * chore(menu): improve wording Co-authored-by: Marin Bratanov <[email protected]>
2 parents 0435820 + 3275f24 commit e2401ff

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Loading
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Menu items dont close when hovered over
3+
description: Menu items dont close when hovered over
4+
type: troubleshooting
5+
page_title: Menu items dont close when hovered over
6+
slug: kb-menu-items-dont-close
7+
position:
8+
tags:
9+
ticketid: 1479006
10+
res_type: kb
11+
---
12+
13+
## Description
14+
15+
I have setup a [Menu]({%slug components/menu/overview%}) in my Telerik Blazor Application. When the component is hosted and the user hovers quickly over the menu items they would not always close.
16+
17+
>caption The menu items do not close when the user hovers quickly over them
18+
19+
![menu items do not close on hover](images/menu-items-dont-close.gif)
20+
21+
## Cause\Possible Cause(s)
22+
23+
This behavior is mainly observed when the application uses the `Blazor Server` hosting model. It occurs mostly due to high network latency to the server which hosts the project because every user interaction involves a network hop (passing one data package from one network segment to the next).
24+
25+
The SignalR connection is asynchronous and the large volume of quick events are not guaranteed to arrive in the same order as they are sent, which can cause issues with the circuit state - the server will receive wrongly ordered packets and events and can render wrong popups, thinking previous ones are not open or are already closed.
26+
27+
A common reason for such a problem is that WebSockets are not enabled on the hosting server (most common in cloud hosting such as Azure, where they are turned off by default).
28+
29+
Another common cause is the usage of a VPN to access the server - such tools often add a lot of latency to the network calls, and that is very detrimental to the server-side Blazor flavor.
30+
31+
## Solution
32+
33+
A solution to this would be using the `Blazor WebAssembly` hosting model. That would remove the latency factor since the content of the application is executed on the device of the user.
34+
35+
Any other option that lowers the user latency to reasonable values for the server-side Blazor model can also resolve the problem.

0 commit comments

Comments
 (0)