AdminLTE
AdminLTE copied to clipboard
fix: prevent multiple event listener calls #4339
in some implementation cases in SPA, the Treeview must be initiated manually, but when the page is refreshed then the Treeview will be initialized more than once and create duplicate event listeners that make the Treeview toggle become buggy (it won't collapse when the Treeview initiated more than once), so I added the stopImmediatePropagation to prevent the multiple event listener calls.
Give some more details regarding to issue like code, images, video to solve issue