This is because the before function must return true in order to show. The documentation only talks about returning false to not show the context menu. I've committed a fix that will only not show the context menu if the before function returns false.
In the current code, the following code from the README.MD will not show the contextmenu:
This is because the
before
function must return true in order to show. The documentation only talks about returning false to not show the context menu. I've committed a fix that will only not show the context menu if the before function returns false.