Semantic 'sidebar' function conflict with jQuery library



I have a webpage that uses jQuery and a context-menu plugin:

jquery.ui-contextmenu.min.js — (jQuery UI context menu plugin - v1.18.1 - 2017-08-28 |

I added Semantic UI to give it a more modern look and as soon as I try to use the sidebar, the context menu stops working. Everything runs as normal until I click on the mobile menu button, that calls $(’.top.sidebar’).sidebar(‘toggle’);. From that moment, when you right click on the div that handles the context menu nothing happens.

How could I troubleshoot this problem? I mean, how could I know what is ‘sidebar’ function doing to the ‘context-menu’ plugin to make it stop working?

Thanks in advance,