Duplicate context menu when NOT using native menus (appears twice, layered on top of each other)

Affected platform

  • Obsidian 1.8.7–1.8.9
  • macOS

Steps to reproduce

  1. Start with a completely fresh vault (also works in the Sandbox)
  2. Set the Appearance → Native menus setting to OFF
  3. Install a plugin that provides a right-click context menu for images in Preview mode: I have tested this successfully with Pixel Perfect Image, Image Converter, Image Helper, and Image Context Menus. But I believe any plugin that uses the standard method of registerDomEvent(document, 'contextmenu' ... will experience this bug.
  4. Create a new note
  5. Paste in an image
  6. Right click on that image

You will see the context menu appear. Now, observe that it has a thicker/darker border/shadow effect. That is because there are TWO context menus stacked on top of each other. You can confirm this by tapping the ESC key to dismiss the top one, you will see the shadow lighten, and reveal the identical menu beneath it. Tap ESC again to close the 2nd one.

This bug does not seem to occur on Windows. Nor does it occur when Native menus are in use.

Did you follow the troubleshooting guide?

Yes

Expected result

Single context menu appears when right clicking.

Actual result

Two menus appear.

Environment

SYSTEM INFO:
	Obsidian version: v1.8.9
	Installer version: v1.8.7
	Operating system: Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 24.3.0
	Login status: logged in
	Language: en
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 1
	Plugins enabled: 1
		1: Pixel Perfect Image v1.0.10

Screenshots & Video

Here are a couple of screenshots showing the issue.

And here’s a screen recording:

Originally I had thought this was a bug specifically in the Pixel Perfect Image plugin (GitHub issue) so linking that for reference.

This is an issue with Electron v33 on macOS. We will be updating to a new version of Electron soon that addresses this problem.

1 Like

Thanks @liam I thought I was going crazy at first.

There is an updated electron build in the insider discord channel. You can try that.

Indeed, the E34 build does fix this bug! Thanks @WhiteNoise for that tip. I don’t hang out in the Discord much (perhaps I should)