Skip to content

fix(FormList): index conflict after insertion causing deletion errors#4135

Open
RylanBot wants to merge 1 commit intodevelopfrom
rylan/fix/form/add
Open

fix(FormList): index conflict after insertion causing deletion errors#4135
RylanBot wants to merge 1 commit intodevelopfrom
rylan/fix/form/add

Conversation

@RylanBot
Copy link
Collaborator

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

  • 本条 PR 不需要纳入 Changelog

tdesign-react

  • fix(FormList): 修复 add 读取到旧索引导致 remove 异常的问题

@tdesign-react/chat

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@tdesign-bot
Copy link
Collaborator

TDesign Component Site Preview Open

Component Preview
tdesign-react 完成
@tdesign-react/chat 完成

isListField: true,
});
// 重新计算插入位置之后所有元素的 name 索引
newFields.forEach((field, index) => Object.assign(field, { name: index }));
Copy link
Collaborator Author

@RylanBot RylanBot Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.15.9 之前的代码

#3957 (comment)

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 12, 2026

  • tdesign-react-demo

    npm i https://pkg.pr.new/Tencent/tdesign-react@4135
    
    npm i https://pkg.pr.new/Tencent/tdesign-react/@tdesign-react/chat@4135
    

commit: d2a9974

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants