Преглед на файлове

fix offset of data_editor input when page is scrolled (#2208)

Thomas Brandého преди 1 година
родител
ревизия
1b402b65be
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      reflex/components/datadisplay/dataeditor.py

+ 5 - 1
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: