Hi, I receive this error when I rapidly hover over the Menu Bar items before it finishes rendering.
Please not that this error happens rarely, but it does occur more often when there are other components that need to be loaded along with the Menu Bar.
STEPS ON HOW TO REPRODUCE:
- Set breakpoints on line 19 ('foreach') & line 52 ('OnAfterRender')
- Run on 'Debug' mode
- View 'Output from Menu - ASP.NET Core Web Sever' to see the 'foreach' iteration count
- Hit continue in debugger until 'foreach' iteration count = 3
- Hit continue to hit 'foreach' iteration count = 4
- IMMEDIATELY hover up and down Menu Items
- Return to debugger and 'Step Over'
- It should crash after finishing 'OnAfterRender()'
- If not, it will hit the 'foreach' loop again
Please see the video for the reproduce steps.
I believe the error is occurring because Syncfusion is rendering the Menu Bar internally, but if a user hovers over any of the menu items before it is finished rendering internally, it will crash and throw the error. That is why if there are other components that need to be loaded in addition to the Menu Bar, there is a greater chance the Menu Bar will crash because it will take longer to render internally.
Attachment:
Menu_Over_Hover_Error_3cbb1615.zip