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

🐛[BUG] ProTable的高级筛选栏在search的filterType是light时,renderFormItem底部清除按钮有问题 #8303

Closed
vobile-wangzhenfeng opened this issue Apr 13, 2024 · 0 comments · Fixed by #8305

Comments

@vobile-wangzhenfeng
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

ProTable的高级筛选栏在search的filterType是light时,renderFormItem是Select组件并开启多选模式,在选择多个item后,点击底部清除按钮,会使Select出现一个空的Tag。

📷 复现步骤

https://codesandbox.io/p/sandbox/cha-xun-biao-ge-forked-r2m4wd?file=%2FApp.tsx%3A106%2C40

  1. 打开上面链接
  2. 加载完成后,点击筛选栏中的“状态”,会弹出一个Select组件
  3. 选择两个选项,然后点击左下角的“清除”按钮,会发现Select组件多了一个空白Tag

备注:Select组件自带的clear按钮是能正常实现清除功能的

🏞 期望结果

  1. 清除按钮能够正常实现清除逻辑
  2. 提供一种方式能让search的filterType,使用 renderFormItem的时候,能自定义底部按钮
    image
    这样我就能诱导用户使用Select组件自带的clear

💻 复现代码

https://codesandbox.io/p/sandbox/cha-xun-biao-ge-forked-r2m4wd?file=%2FApp.tsx%3A106%2C40

© 版本信息

  • ProComponents 版本: 2.6.50
  • 浏览器环境 chrome 122
  • 开发环境 macOS

🚑 其他信息

image

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 a pull request may close this issue.

1 participant