When this plugin is used within a React component, onClick events do not fire. Here is the line of code causing this problem:
this.$menuitems.on( 'click.dlmenu', function( event ) {
event.stopPropagation();
Source: https://github.com/codrops/ResponsiveMultiLevelMenu/blob/master/js/jquery.dlmenu.js#L123
I suggest that stopPropagation should only be called when a submenu parent node is clicked, but not when normal links are clicked, to improve compatibility with React and other frameworks.
When this plugin is used within a React component,
onClickevents do not fire. Here is the line of code causing this problem:Source: https://github.com/codrops/ResponsiveMultiLevelMenu/blob/master/js/jquery.dlmenu.js#L123
I suggest that
stopPropagationshould only be called when a submenu parent node is clicked, but not when normal links are clicked, to improve compatibility with React and other frameworks.