ant-design icon indicating copy to clipboard operation
ant-design copied to clipboard

Placeholder DatePicker When Mode multiple

Open KhanhKitin opened this issue 11 months ago • 3 comments

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

KhanhKitin avatar Mar 25 '24 04:03 KhanhKitin

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

CooperHash avatar Mar 25 '24 10:03 CooperHash

it seems rc-datepicker's problem, rc-datepicker set muliti's input to readonly @KhanhKitin 你们怎么看这个问题 @zombieJ @afc163

CooperHash avatar Mar 25 '24 15:03 CooperHash

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的区分

CooperHash avatar Mar 25 '24 15:03 CooperHash

The same bug is observed on Antd 5.14.1, React 18.2.0, Windows 10, Brawe/Chrome

webml avatar Jun 04 '24 07:06 webml