Custom menubar icon keeps selected

When clicking a custom menubar icon, the icon remains clicked after the click.
It is necessary to click it again to unselect it.
In this example, I use the right click to open a custom context menu:
Right Click - Custom Context Menu

Device information:

  • Type of Mac: macbook pro 15 retina mid 2015
  • macOS version: macos monterey 12.4
  • BetterTouchTool version:3.826