Dialog is not rendered in a root which causes stacking context problems.
See original GitHub issueWhat is the current behavior? Describe the bug
Source dialog is rendered right after the toolbar. So both depend on fixed_toolbar_container
setting.
Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.
- Create some element with position relative + some positive
z-index
- Render editor after that element
- 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:
- “@tinymce/tinymce-angular”: “^6.0.1”,
- “tinymce”: “^6.0.2”,
Browser:
- Google chrome version 100.0.4896.127 (Official Build) (64-bit)
OS:
- Windows 11
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@TheSpyder , ping