Skip to content
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

fix(color-picker): colorPicker Input register onChange event #5111

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

wakisun
Copy link

@wakisun wakisun commented Feb 27, 2025

colorPicker Input register onChange event

closed #5079

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

Issue 5079

💡 需求背景和解决方案

背景:ColorPicker 设置 clearable 参数,同时传递onChange参数,在执行清除操作的时候onChange回调未触发。
解决方案:定位到ColorPicker使用的Input组件只注册了onBlur事件监听,数据变更没有触发color的更新,所以注册一个onChange事件监听Input组件的数据变更。

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

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

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

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

colorPicker Input register onChange event

closed Tencent#5079
@wakisun wakisun force-pushed the fix/color-picker branch from 6f4ce06 to fae7dce Compare March 4, 2025 13:34
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.

[ColorPicker] clearable清空监听事件
1 participant