react-js-cron
react-js-cron copied to clipboard
Pressing clear inside 'Select' does not show desired result.
Describe the bug
When clicked on clear
button in minutes
or hours
Select, the value inside don't get cleared.
To Reproduce Steps to reproduce the behavior:
- Go to 'Cron widget'
- Click on 'minutes dropdown'
- Add at least 5 items.
- Close the dropdown
- Click on
clear/X
button on the right. - See bug where the values don't get clear.
Expected behavior Once clicked on clear, the values should get removed.
CodeSandbox https://codesandbox.io/s/cron-antd-rcjv9
Versions (please complete the following information):
- react-js-cron version 1.3.0
- Ant Design version: 4.18.6
- React version: 17.0.2
- OS: macOS
- Browser Firefox
Additional context The issue is not present when switching to antd version 4.17.2
Demo: https://user-images.githubusercontent.com/74043614/153365290-5a82cb1a-d727-476c-8a9d-ded9a547e238.mov
Hello,
Thanks for the issue. It clearly seems like v4.18.0 of antd introduce the bug in the Cron component. I will take a look and try to fix this ASAP.
Xavier
There is an open issue on antd side. I will wait to see if they can revert this new behavior (bug for me) or not.
cf: https://github.com/ant-design/ant-design/issues/33790
It's closed on antd side, so now you should not have the bug anymore: https://github.com/ant-design/ant-design/issues/33790