Steps to reproduce
- Copy the following into a note (sandbox vault)
> [!note] Code Callout
> ```
> This is a bit of code
> ```
> [!NOTE] outer callout
> Text
>
> > [!note] nested callout
> > ```
> > This is a bit of nested callout code
> > ```
- Click the copy button on either of the code blocks within the callout
Expected result
The codeblock is copied to clipboard and the callout remains in it’s rendered state.
Because a button was interacted with, the callout should not be selected for editing.
Actual result
The codeblock is copied to clipboard, but it also highlights the entire callout block like it was clicked inside for editing.
This makes things annoying when trying to copy a section from a nested callout and the entire block is highlighted
Environment
SYSTEM INFO:
Obsidian version: v1.3.5
Installer version: v1.3.5
Operating system: Windows 10 Education 10.0.19044
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0
RECOMMENDATIONS:
none