You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Data editor cell edit overlay doesn't appear when app is deployed via Docker / Ubuntu 24.04 #6143
Describe the bug
Cell edit overlay does not appear when reflex app is deployed using Docker / Ubuntu 24.04. Div with id="portal" does not exist in the HTML.
To Reproduce
Create a page with a rx.data_editor with data
Deploy using Docker / Ubuntu 24.04
Click on a selected cell
Cell overlay does not appear
Expected behavior
When clicking a selected cell, an editable div overlay should appear with the value of the selected cell.
Screenshots
What we should see
What is logged in the browser console
Specifics:
Python Version: 3.13
Reflex Version: 0.8.27
OS: Ubuntu 24.04
Browser: Microsoft Edge, Firefox, Google Chrome
Additional context
Overlay appears using OS: Microsoft Windows 11.
Possibly related to #2094
Root cause, found while testing 0.9.12a1 (pre-existing — reproduced with a 12-line app on 0.9.11.post1 and 0.9.12a1, byte-identical root.jsx nesting on both):
reflex_components_dataeditor/dataeditor.py registers the Glide portal as the app wrap {(-1, "DataEditorPortal"): Portal.create(id="portal")}.
In production (reflex run --env prod / reflex export, i.e. any deployment) with the default show_built_with_reflex=True, _setup_sticky_badge registers app_wraps[0, "StickyBadge"] (reflex/app.py:1639-1649, added in prod by reflex/compiler/compiler.py:1347-1356).
_app_root (reflex/app.py:1574-1590) sorts wraps by priority descending and nests each lower-priority wrap as a child of the previous one, so the portal wrap (priority −1, the only negative-priority wrap in the tree) ends up inside the badge wrap.
StickyBadge.create (reflex_components_core/core/sticky.py:90-107) accepts no *children and its compiled memo(({}) => …) never renders props.children, so <div id="portal"> never reaches the DOM → Cannot open Data Grid overlay editor, because portal not found. Please add <div id="portal" /> as the last child of your <body>.
That is why it works in dev (no badge) — on Windows you were most likely running reflex run in dev — and fails in every deployed default-config app regardless of OS. A/B on the same prod build: with show_built_with_reflex=False the #portal div is present and the overlay opens (including the new image-preview carousel from #7081, whose CSS ships in 0.9.12a1 but which cannot open in prod for the same reason).
Workaround until fixed: disabling the badge (show_built_with_reflex=False) restores the portal. Fix shape: let StickyBadge render its children, or register the portal so it stays a sibling of the badge wrap.
Activity
masenf commentedon Sep 19, 2026
Root cause, found while testing 0.9.12a1 (pre-existing — reproduced with a 12-line app on 0.9.11.post1 and 0.9.12a1, byte-identical
root.jsxnesting on both):reflex_components_dataeditor/dataeditor.pyregisters the Glide portal as the app wrap{(-1, "DataEditorPortal"): Portal.create(id="portal")}.reflex run --env prod/reflex export, i.e. any deployment) with the defaultshow_built_with_reflex=True,_setup_sticky_badgeregistersapp_wraps[0, "StickyBadge"](reflex/app.py:1639-1649, added in prod byreflex/compiler/compiler.py:1347-1356)._app_root(reflex/app.py:1574-1590) sorts wraps by priority descending and nests each lower-priority wrap as a child of the previous one, so the portal wrap (priority −1, the only negative-priority wrap in the tree) ends up inside the badge wrap.StickyBadge.create(reflex_components_core/core/sticky.py:90-107) accepts no*childrenand its compiledmemo(({}) => …)never rendersprops.children, so<div id="portal">never reaches the DOM →Cannot open Data Grid overlay editor, because portal not found. Please add <div id="portal" /> as the last child of your <body>.That is why it works in dev (no badge) — on Windows you were most likely running
reflex runin dev — and fails in every deployed default-config app regardless of OS. A/B on the same prod build: withshow_built_with_reflex=Falsethe#portaldiv is present and the overlay opens (including the new image-preview carousel from #7081, whose CSS ships in 0.9.12a1 but which cannot open in prod for the same reason).Workaround until fixed: disabling the badge (
show_built_with_reflex=False) restores the portal. Fix shape: letStickyBadgerender its children, or register the portal so it stays a sibling of the badge wrap.Evidence (0.9.12a1 pre-release QA campaign, FINDING-012):
prerelease-testing/2026-09-18-v0.9.12a1/components_bumps/verification/—vapp/(the repro app),shots/,logs/.Generated by Claude Code
prerelease-testing: 0.9.12a1 — tracking issues #7211-#7214 (+#6143) a…
prerelease-testing: 0.9.12a1 — f012 fix report and evidence (badge Fr…
fix: keep app wraps below the sticky badge renderable
prerelease-testing: 0.9.12a1 — fixes for the release blockers: report…
fix: keep app wraps below the sticky badge renderable (reflex-dev#7218)