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" 轻量模式下 columns.valueType = "dateRange" 点击X未设置value为空数组,导致dateRange组件出现Invalid Date #8181

Open
wuhao930406 opened this issue Feb 22, 2024 · 3 comments · Fixed by #8305

Comments

@wuhao930406
Copy link

🐛 bug 描述

ProTable search.filterType = "light" 轻量模式下 columns.valueType = "dateRange" 点击X未设置value为空数组,导致dateRange组件出现Invalid Date

📷 复现步骤

image

image

直接查看官网demo即可发现存在的BUG!!
地址:protable 轻量筛选

🏞 期望结果

datapicker 下 Range类组件重置效果正常。

💻 复现代码

直接查看官网demo即可发现存在的BUG!!
地址:protable 轻量筛选

© 版本信息

  • ProComponents 版本

  • "@ant-design/pro-components": "^2.6.49"

  • umi 版本

  • "@umijs/max": "^4.1.1"

  • 浏览器环境

  • Google Chrome
    版本 121.0.6167.184(正式版本) (arm64)

  • 开发环境

  • mac OS

🚑 其他信息

@liu245933567
Copy link

插眼,我也在寻求这个bug的解决方案

@wuhao930406
Copy link
Author

wuhao930406 commented Mar 6, 2024

插眼,我也在寻求这个bug的解决方案

这个模式下有坑还不好填 我这边重写了一下ProTable 的 searchFormRender 好把控一点,他这边搜索用的是BetaSchemaForm这个组件

@zhuba-Ahhh
Copy link
Contributor

#8305

看了下这个case是符合预期的

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.

3 participants