Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code blocks inside .. collapse:: directives are sometimes displayed without text #61

Open
DSSAtDatagen opened this issue Jan 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@DSSAtDatagen
Copy link

Describe the bug

context
I place thebe code blocks inside .. collapse:: directives on a regular basis.

expectation
I expect the code block to act the same way as any other code block.

bug
But instead - and on Firefox browsers only - the input section of the code block has no text in it.

This only happens if the kernel is activated before you open the collapsed section of the page. And it only happens on Firefox; it does not happen on Edge or Chrome

Reproduce the bug

  1. Create a ..collapse:: directive and put a thebe-enabled .. code-block:: inside of it.
  2. Build
  3. Open the page in Firefox 108.0.2 (the latest version, though this has been an issue for some time)
  4. Activate the kernel
  5. Open the collapse directive
  6. Notice that the input block is blank.
  7. Click in the input block and the text that should be there suddenly appears.

Example of a blank input block that actually has text in it:
image

List your environment

I'm using Firefox 108.0.2 on Windows 10.

sphinx-thebe: 0.1.2
myst-parser: 0.15.2
sphinx: 4.5.0
docutils: 0.17.1

@DSSAtDatagen DSSAtDatagen added the bug Something isn't working label Jan 17, 2023
@welcome
Copy link

welcome bot commented Jan 17, 2023

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant