Skip to content

Commit b6a7682

Browse files
docs(common): invisible popups
1 parent 534df4e commit b6a7682

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

troubleshooting/general-issues.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: General Issues
3+
page_title: General Issues
4+
description: Troubleshooting general issues in the UI for Blazor suite
5+
slug: troubleshooting-general-issues
6+
tags: general,issues,troubleshoot,fix
7+
published: True
8+
position: 1
9+
---
10+
11+
# General Issues
12+
13+
This page provides solutions for common issues you may encounter while working with Telerik UI for Blazor components.
14+
15+
## Popups Do Not Work
16+
17+
There are three common reasons for this
18+
* Missing [`<TelerikRootComponent>`]({%slug getting-started/what-you-need%}#project-configuration) from the app.
19+
* [Missing JS Interop file]({%slug troubleshooting-js-errors%}#microsoftjsinteropjsexception-could-not-find-)
20+
* Special positioning on the `<app>` element.
21+
22+
The `<app>` element is the topmost component that a developer has access to in Blazor. This means that we cannot place our popups higher than that in the DOM. Thus, their position and visibility depend on the position of the `<app>` element matching the position of the `<body>` element.
23+
24+
The default application template has a `position: relative` rule for the `app` element that can break the appearance and positions of our popups (most notably in Firefox). The solution is to remove such special positioning. For example, modify the default `site.css` file like this:
25+
26+
````CSS
27+
app {
28+
/* remove this line */
29+
/* position: relative; */
30+
31+
/*
32+
if you continue experiencing issues, try removing these lines as well
33+
make sure that the app element positioning matches the body element and is visible
34+
*/
35+
display: flex;
36+
flex-direction: column;
37+
}
38+
````
39+
40+
41+
## See Also
42+
43+
* [JavaScript Errors Troubleshooting]({%slug troubleshooting-js-errors%})
44+
* [Content Security Policy]({%slug troubleshooting-csp%})

troubleshooting/js-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Troubleshooting JavaScript errors in the UI for Blazor suite
55
slug: troubleshooting-js-errors
66
tags: js,errors,interop,missing
77
published: True
8-
position: 1
8+
position: 3
99
---
1010

1111
# JavaScript Errors

0 commit comments

Comments
 (0)