Skip to content

fix(slider): skip non-finite object marks - #4532

Open
lanqing431 wants to merge 1 commit into
Tencent:developfrom
lanqing431:codex/tdesign-slider-finite-mark-keys
Open

lanqing431 wants to merge 1 commit into
Tencent:developfrom
lanqing431:codex/tdesign-slider-finite-mark-keys

Conversation

@lanqing431

Copy link
Copy Markdown

这个 PR 的性质

  • Bug 修复

需求背景和解决方案

对象形式的 marks 会把键转为数字。非数字键转成 NaN 后仍会进入渲染。过滤非有限键,保留已有的有效刻度和点击行为。

验证

原版生成非数字刻度,修复后 34 个 Slider 测试通过。Chromium 验证无效刻度未显示,有效刻度仍可选择。

Chromium 回归演示

更新日志

tdesign-react

  • fix(slider): skip non-finite object marks

自查

  • 现有文档适用
  • 已提供交互验证截图
  • TypeScript 定义无须修改
  • 已提供 Changelog 条目

实现和测试使用了 AI 辅助。

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.

1 participant