Reproduction link
https://ant.design/components/date-picker
Steps to reproduce
- Datepicker have placeholder
- Add mode multiple Datepicker
- Do not show placeholder
What is expected?
Show placeholder
What is actually happening?
Not show Placeholder
| Environment | Info |
| ------------ | ------------ |
| antd | 5.15.3 |
| React | 18.2.0 |
| System | MacOs |
| Browser | chrome |
4条答案
按热度按时间nwlqm0z11#
Antd's DatePicker component currently has a multiple input that is designed to be readonly and is used solely for accessibility (a11y).
This input has neither height nor width. However, I believe it would be more appropriate if the behavior of the DatePicker's input was consistent, regardless of whether it's in multiple or no multiple mode.
I consider this to be an issue that needs to be addressed. @zombieJ
2j4z5cfb2#
it seems rc-datepicker's problem, rc-datepicker set muliti's input to readonly @KhanhKitin
你们怎么看这个问题 @zombieJ@afc163
uqcuzwp83#
it seems rc-datepicker's problem, rc-datepicker set muliti's input to readonly @KhanhKitin 你们怎么看这个问题 @zombieJ@afc163
https://github.com/react-component/picker/blob/30775454e3142c23ed8518c94b3e57be7c0d16be/src/PickerInput/Selector/SingleSelector/index.tsx#L162-L193
datepicker的multi是否需要做input readonly的区分
jhkqcmku4#
The same bug is observed on Antd 5.14.1, React 18.2.0, Windows 10, Brawe/Chrome