-
-
Notifications
You must be signed in to change notification settings - Fork 844
Closed
Labels
bugType/scope: A problem that needs fixingType/scope: A problem that needs fixingreviewStatus: PR is open and needs reviewStatus: PR is open and needs review🟠 majorPriority: Important, but not urgentPriority: Important, but not urgent
Milestone
Description
First Check
- I added a very descriptive title here.
- This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
- I used the GitHub search to find a similar issue and came up empty.
Example Code
from nicegui import ui
@ui.page(path="/")
async def error_causer():
ui.dark_mode(None)
with ui.grid().classes("items-start place-items-stretch w-full grid-cols-2"):
ui.aggrid({})
ui.button()
ui.run()
Description
With commenting ui.dark_mode,
Without commenting ui.dark_mode,
If I set dark=None in run,
The bug does not happen if there are buttons only (possibly if its only quasar components I believe)
I wanted to have an ag grid on left some content on the right. And I have managed to get a minimal reproducible code. I do not know what causes it so please change the title if the cause is something else.
For now I will stick with True/False for dark mode.
NiceGUI Version
2.20.0
Python Version
3.12
Browser
Chrome
Operating System
Linux
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugType/scope: A problem that needs fixingType/scope: A problem that needs fixingreviewStatus: PR is open and needs reviewStatus: PR is open and needs review🟠 majorPriority: Important, but not urgentPriority: Important, but not urgent