Stop propagating click action for Copy button of a codeblock in callout

In live preview, whenever I click the copy button of a code block in a callout, I would expect that the content of code block gets copied without going into source mode of the callout. Instead, the code block content does get copied and propagate the click action which causes callout to be in source mode.

Screen-Recording-2024-11-09-at-02.18.26

Personally, I think that clicking on the copy button in live preview should not be propagated down to the callout. Since I’m not sure if this is considered a bug, I put the topic in Help section. I’d love to hear developers’ opinion on this.


SYSTEM INFO:
	Obsidian version: v1.7.5
	Installer version: v1.7.5
	Operating system: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000 24.1.0
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Thanks! This could have been posted in the bug reports section. It will be fixed in a future version of Obsidian

1 Like

Version 1.8.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.