react-multi-date-picker
react-multi-date-picker copied to clipboard
placeholder prop not working
placeholder prop not working even though its there
const [ingestDate, setIngestDate] = useState(null);
<DatePicker
placeholder="From - To"
value={ingestDate}
onChange={(date) => {
setIngestDate(date);
console.log("ingest stat date", date[0].format());
console.log("ingest end date", date[1].format());
}}
maxDate={new DateObject()}
numberOfMonths={2}
range
format="MM/DD/YYYY HH:mm:ss A"
plugins={[<TimePicker position="bottom" />]}
render={<InputIcon className="form-control ml-2 " />}
/>
Hi It's because you are rendering custom input. You need to set placeholder directly to it.
Hi It's because you are rendering custom input. You need to set placeholder directly to it.
I passed it to the component like this , still not showing it, I am using <InputIcon/> compoenent provided by react-multi-date-picker
<InputIcon className="form-control ml-2" placeholder="From - To" />
I will work on it ...
I will work on it ...
okay, thanks for your reply
fixed in v3.3.1.