Skip to content

Commit

Permalink
Bug fix: Reference to __singlePageContent in page_layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyxion committed Apr 6, 2024
1 parent 30a87e3 commit a923f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicegui/page_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def __init__(self, position: PageStickyPositions = 'bottom-right', x_offset: flo

def _check_current_slot(element: Element) -> None:
parent = context.get_slot().parent
if parent != parent.client.content and parent != parent.client.state.get("__singlePageContent", None):
if parent != parent.client.content and parent != parent.client.single_page_content:
log.warning(f'Found top level layout element "{element.__class__.__name__}" inside element "{parent.__class__.__name__}". '
'Top level layout elements should not be nested but must be direct children of the page content. '
'This will be raising an exception in NiceGUI 1.5') # DEPRECATED

0 comments on commit a923f34

Please sign in to comment.