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底部清除后,无法选择option #8410

Open
vobile-wangzhenfeng opened this issue May 15, 2024 · 1 comment

Comments

@vobile-wangzhenfeng
Copy link

vobile-wangzhenfeng commented May 15, 2024

提问前先看看:

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

🐛 bug 描述

ProTable的高级筛选栏在search的filterType是light时,renderFormItem是Select组件并开启多选模式,在选择多个option后,点击底部清除按钮,然后再次点击option,无法选中。

📷 复现步骤

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

打开上面链接
加载完成后,点击筛选栏中的“状态”,会弹出一个Select组件
选择两个选项,然后点击左下角的“清除”按钮,正常清空,然后再点击option就点不动了。

备注:Select组件自带的clear按钮是能清除后还能正常使用

🏞 期望结果

  1. 点击清除按钮还能正常使用Select
  2. 提供一种方式能让search的filterType,使用 renderFormItem的时候,能自定义底部按钮。比如怎么隐藏ProTable提供的LightFilter组件中其中一个表单项里的DropdownFooter。
    image

💻 复现代码

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

© 版本信息

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

🚑 其他信息

Copy link

github-actions bot commented May 15, 2024

以下的 Issues 可能会帮助到你 / The following issues may help you

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

No branches or pull requests

1 participant