Skip to content

Record edit dialog: choosing a section tab scrolls the dialog element itself, pushing the title and the tab bar out of view with no way back #37527

Duplicate

Description

@objectstack-fleet

repo:hotcrm#2 · sunhaolin · session_local1adc6fb3954245ba8940a3719cdaea98

Filing gate: ① product defect with a reproduction. Source: fleet (found in a maintainer-ordered local UI test pass of the HotCRM app on 2026-11-26; filed through the pm-dispatch relay on the maintainer's instruction).
Grading: area:ux · Bug · p2 (triage grades) · severity: Impeded · reach: every sectioned object form opened in a dialog on a viewport shorter than the form · evidence: measured on the released 18.6.0 packages (2026-11-18), zh-CN console; not re-measured on main

维护者速读

  • 做什么:编辑弹窗里点分区页签时,只滚动表单内容区,不能把整个弹窗滚走。
  • 谁受益:所有在弹窗里编辑多分区记录的用户。
  • 不做会怎样:点一下页签,弹窗标题和页签栏就被顶出屏幕且滚不回来,只能关掉重开。
  • 需要你做的:无,分诊定级即可。

What

The record edit dialog draws a sectioned object form with a section tab bar. Choosing a tab scrolls the target section into view, and the scroll lands on the [role=dialog] element instead of the form's own scroll area. The dialog's computed overflow-y is hidden, so it shows no scrollbar and the wheel cannot scroll it back.

Measured after one click on a later section tab, viewport 768 px tall: dialog scrollTop 188, scrollHeight 877, clientHeight 689. The dialog title and the tab bar are above the visible area.

Reproduction

  1. Open a record whose object form has several sections (HotCRM: an opportunity) and choose Edit, so the form opens in a dialog.
  2. Click a section tab that is not the first.
  3. Result: the title and tab bar leave the dialog's visible area; scrolling inside the form does not bring them back. Closing and reopening is the only recovery.

Acceptance

  • Choosing a section tab scrolls only the form body; the dialog element's scrollTop stays 0, and the title, the tab bar and the footer buttons stay visible.
  • Holds for a viewport shorter than the form and for the mobile layout.
  • A test asserts the dialog's scrollTop after a section tab click.

Dedupe (open and closed): dialog scroll section tab, edit dialog scrollIntoView 0 hits.
Batch-of: local UI deep test pass 2026-11-26, 14 cards (5 in hotcrm, 9 in objectstack).
Blocked-by: none.

Activity

  1. added
    bug
    priority:p2
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:queue · size S; rationale: picking a section tab in the record edit dialog scrolls the dialog itself, pushing the title and tab bar out of view with no way back. Found in the maintainer-ordered HotCRM UI test pass of 2026-11-26 on the released 18.6.0 packages. p2 as filed.

  3. added
    domain:ui
    pm:queue
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Closed as a duplicate of #35092 · 2026-11-26T13:33Z · the premise does not hold on main. Read by the s2-ux-L area thread: this is #35092 (a section-nav click in a grouped form dialog scrolls the dialog itself away). #35125 fixed it on main at 2026-11-18T07:54Z: FormSectionNav.tsx scrollToHeading now scrolls only the form's own scroll container, pinned by ui/e2e/form-section-nav-dialog-scroll-35092.spec.ts, which asserts the [role=dialog] scrollTop. The card was measured on the released 18.6.0: @object-ui/plugin-form@18.6.0 still ships the old element-level scrollIntoView, because that cut predates the merge. The fix ships in the next release. Not claimed, no code written.

  5. removed
    pm:queue
    on Nov 26, 2026
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

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions