question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dialog is not rendered in a root which causes stacking context problems.

See original GitHub issue

What is the current behavior? Describe the bug Source dialog is rendered right after the toolbar. So both depend on fixed_toolbar_container setting. image

Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.

  1. Create some element with position relative + some positive z-index
  2. Render editor after that element
  3. Open source dialog

What is the expected behavior? It would be better to render it directly to the body (documentElement) html element. Or at least add some config setting which would accept the element/selector where to render the dialogs.

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE? Npm packages:

Browser:

  • Google chrome version 100.0.4896.127 (Official Build) (64-bit)

OS:

  • Windows 11

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TheSpydercommented, Jul 27, 2022

We’re actually looking at an adjustment to separate the dialogs into their own root element for other reasons. I’m not sure if this plan will fit into the next release scope but it sounds like it would resolve that issue.

The menus look like a different issue - we need those tied to the toolbar so they scroll together. However they should be positioning themselves so they’re not squished up against the edge of the view like that.

0reactions
liesaheadcommented, Nov 24, 2022

@TheSpyder , ping

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 reasons your z-index isn't working (and how to fix it)
Solution: Move the modal outside of the content parent, and into the main stacking context of the page. The corrected markup would then...
Read more >
The stacking context - CSS: Cascading Style Sheets | MDN
The stacking context is a three-dimensional conceptualization of HTML elements along an imaginary z-axis relative to the user, ...
Read more >
Z-Index NOT working on Angular's Material Dialog
It and behaves like a right click context menu and is rendered above all document elements. In your case, when you click on...
Read more >
backdrop dialog display behind overlay if used in header ...
This issue is caused by the fact that paper-header-panel will create a new stacking context as soon as we set z-index: 0 (because...
Read more >
Bootstrap Modal Dialog showing under Modal Background
The problem is that the .modal-backdrop overlay sits in the root of the DOM tree while the other content is buried in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found