Skip to content

Conversation

@RylanBot
Copy link
Collaborator

@RylanBot RylanBot commented Jan 8, 2026

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

💡 需求背景和解决方案

测试代码存档(日志 2)
import React, { useState } from 'react';
import { SelectInput } from 'tdesign-react';

export default function SelectInputSingle() {
  const [tags, setTags] = useState(['tdesign-vue', 'tdesign-react', 'tdesign-miniprogram']);

  return (
    <>
      <SelectInput
        multiple={true}
        value={tags}
        tagInputProps={{
          tagProps: {
            onClose: (context) => {
              console.log('Tag onClose:', context);
            },
          },
        }}
        onTagChange={(value) => {
          setTags(value as string[]);
        }}
      />
    </>
  );
}

📝 更新日志

  • 本条 PR 不需要纳入 Changelog

tdesign-react

  • fix(SelectInput): 修复 1.16.0 版本的修复导致点击 closable 图标时无法清除选项的问题
  • fix(SelectInput): 修复传入 tagInputProps.tagProps.onClose 时,onTagChange 不生效的问题
  • fix(Select): 修复 tagInputProps.tagProps 不生效的问题

@tdesign-react/chat

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

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

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

@tdesign-bot
Copy link
Collaborator

tdesign-bot commented Jan 8, 2026

TDesign Component Site Preview Open

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 8, 2026

  • tdesign-react-demo

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

commit: e690e0f

@RylanBot RylanBot force-pushed the rylan/fix/select-input/tag branch from 3336ea7 to e690e0f Compare January 9, 2026 09:48
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.

4 participants