BlazorContextMenu icon indicating copy to clipboard operation
BlazorContextMenu copied to clipboard

"Cannot read properties of undefined (reading 'removeEventListener')" after closing menu

Open dantronik-bugreporting opened this issue 2 years ago • 1 comments

Describe the bug A second after closing the menu, I'm getting this error in the JS console:

blazorContextMenu.js:256 Uncaught TypeError: Cannot read properties of undefined (reading 'removeEventListener')
    at HTMLLIElement.closeSubMenus (blazorContextMenu.js:256:31)
closeSubMenus @ blazorContextMenu.js:256

To Reproduce Steps to reproduce the behavior:

  1. Click submenu item (which opens a window and closes the current context menu
  2. Error in the JS console.

Expected behavior No error

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version 102.0.5005.62

dantronik-bugreporting avatar May 31 '22 14:05 dantronik-bugreporting

Thank you for reporting this. I cannot reproduce it locally. Could you be so kind as to provide a project tha reproduces the bug ?

stavroskasidis avatar Jul 11 '22 11:07 stavroskasidis

I've tried to reproduce the issue again, but somehow can't. Maybe the issue got fixed by the latest version or it was a cache issue. Anyway, closing this.

dantronik-bugreporting avatar Dec 07 '22 13:12 dantronik-bugreporting