Skip to content

Data editor cell edit overlay doesn't appear when app is deployed via Docker / Ubuntu 24.04 #6143

Closed

Description

@IEC1

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

  1. Create a page with a rx.data_editor with data
  2. Deploy using Docker / Ubuntu 24.04
  3. Click on a selected cell
  4. 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
Image

What is logged in the browser console
Image

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

Activity

  1. masenf commented on Sep 19, 2026

    @masenf
    Collaborator

    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.

    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

  2. added a commit that references this issue on Sep 21, 2026
    082654c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions