Reputation: 103
Unlike date picker, range picker of antd has two place holders defaulted to Start Date, End Date
I want to change the placeholders to Start, End.
I have tried the following code which doesn't work as expected
<RangePicker placeholder={"start,end"} />
Upvotes: 5
Views: 5858
Reputation: 4054
If you are planning to change both the placeholders of the Range Picker, you need to pass them as an array of strings as below.
<RangePicker placeholder={["Start", "End"]} />
Upvotes: 10