Skip to content

fix(tree-select): 当 valueType='object ' 时无初始化 value导致错误和意外产生取消选中 #5322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025

Conversation

RSS1102
Copy link
Collaborator

@RSS1102 RSS1102 commented Apr 17, 2025

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

💡 需求背景和解决方案

 879086684
20250417-0901-22.5641356.mp4

📝 更新日志

  • fix(tree-select): 修复当 valueType='object ' 时无初始化选中数据时产生意外错误
    修复第二次点击已选中的 item 时 onChange 抛出的选中值为空并且取消 item 的选中状态的错误

  • 本条 PR 不需要纳入 Changelog

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

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

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

@tdesign-bot
Copy link
Collaborator

TDesign Component Site Preview Open

Component Preview
tdesign-vue-next 完成
@tdesign-vue-next/chat 完成

Copy link

pkg-pr-new bot commented Apr 17, 2025

Open in StackBlitz

npm i https://pkg.pr.new/tdesign-vue-next@5322

commit: 8a013a5

@uyarn uyarn merged commit 4637cbe into develop Apr 21, 2025
13 checks passed
@uyarn uyarn deleted the rss1102/fix/tree-select/value-type-object branch April 21, 2025 04:15
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.

3 participants