diff --git a/nicegui/elements/fullscreen.js b/nicegui/elements/fullscreen.js index 253d4a77e..10c5f6382 100644 --- a/nicegui/elements/fullscreen.js +++ b/nicegui/elements/fullscreen.js @@ -35,7 +35,7 @@ export default { exit() { // Exit fullscreen via Quasar's Fullscreen Plugin - return Quasar.AppFullscreen.exit() + Quasar.AppFullscreen.exit() }, toggle(blockEscapeKey) { diff --git a/nicegui/elements/fullscreen.py b/nicegui/elements/fullscreen.py index 4b3b44549..23b13711e 100644 --- a/nicegui/elements/fullscreen.py +++ b/nicegui/elements/fullscreen.py @@ -22,7 +22,7 @@ def __init__(self, *, require_escape_hold: bool = False, on_state_change: Callab super().__init__() self._is_fullscreen = False self._require_escape_hold = require_escape_hold - self.on('fullscreen_change', lambda e: self._handle_fullscreen_change(e)) + self.on('fullscreen_change', self._handle_fullscreen_change) self._state_change_handlers = [on_state_change] if on_state_change else [] def _handle_fullscreen_change(self, event):