Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

FilterBuilder 切换行的 field 后 operator 不重置 —— select 改 text 后 operator 可停留在下拉里已不存在的 in,trigger 显示空 #4768

Closed

Description

@yinlianghui

发现于 #3958 的实施(PR #4762),回传立单。可见 UI 不一致(#4762 之后该行仍渲染 token 输入、产出合法数组,不再是 spec 拒绝类缺陷,但 operator 下拉显示空白)。

事实

packages/components/src/custom/filter-builder.tsx:切换行的 field 时不重置 operator —— 把行的字段从 select(算子桶含 in)改成 text(桶不含)后,operator 仍停留在 in,Radix trigger 因下拉无该项而显示空。

待做

field 切换时若当前 operator 不在新字段的算子桶内,重置为新桶的首项(与 #4762 已落的「operator 切换重整 value」同一家族语义,机制可对照 changeOperator);钉:切换后 operator 恒在新桶内。

参考

Activity

  1. self-assigned this
    on Aug 16, 2026
  2. yinlianghui commented on Aug 16, 2026

    @yinlianghui
    ContributorAuthor

    Claim: 批次 9(座位 repo:objectui,session_01GTRjn8xBqp75dk7kFupVRt,batch:5)
    Branch: claude/issue-4768-filter-field-switch-operator
    File surface: packages/components/src/custom/filter-builder.tsx + 测试;基线含刚落 main 的 PR #4762(changeOperator 机制就位,本单与其同家族:field 切换时 operator 不在新桶内则重置为首项);⛔ 不动 renderers/form(#4014 在飞)。钉:切换后 operator 恒在新桶内 + 既有 #4762 钉不回归。


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions