Skip to content

Toggle hint is inserted into code blocks when clicking inside them #44

@janssenhenning

Description

@janssenhenning

Describe the bug

context
When a code-block is nested inside a toggle region and one clicks inside this block the toggle hint, i.e. Click to show or Click to hide is inserted into the beginning of the block

These two screenshots are form the sphinx-togglebutton read the docs page
Before clicking into the code block

Screenshot 2022-06-20 at 14 22 56

And after

Screenshot 2022-06-20 at 14 23 14

Reproduce the bug

  1. Go to https://sphinx-togglebutton.readthedocs.io/en/latest/ for example
  2. Click the first toggle button
  3. Click inside the revealed code block

List your environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions