From 1b402b65befe08cbe5e760aeded8b3f6dc7349c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Brand=C3=A9ho?= Date: Tue, 21 Nov 2023 00:15:00 +0100 Subject: [PATCH] fix offset of data_editor input when page is scrolled (#2208) --- reflex/components/datadisplay/dataeditor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reflex/components/datadisplay/dataeditor.py b/reflex/components/datadisplay/dataeditor.py index ecef03b38..635bbfc4f 100644 --- a/reflex/components/datadisplay/dataeditor.py +++ b/reflex/components/datadisplay/dataeditor.py @@ -345,7 +345,11 @@ class DataEditor(NoSSRComponent): def get_ref(self): return None - return {(-1, "DataEditorPortal"): Portal.create(id="portal")} + return { + (-1, "DataEditorPortal"): Portal.create( + id="portal", style={"position": "fixed", "top": 0} + ) + } # try: