here in Pseudocode I am using the image-icon my datePicker and it is opening with action. But when i am clicking on IMAGE-icon it's event doesn't persist.
Problem with layerIndex, image appears top of input box so, event could not occurs onChang of input.
import DatePicker from 'react-datepicker'
rendor(){
return(
<div className='country-code small-text label-text'> Repair Date</div>
<DatePicker
id='date-picker'
calendarClassName='fullWidth'
maxDate={moment()}
dateFormat='MM/DD/YYYY'
className='fullWidth'
onChange={this.handleDatePick}
isOpen={this.state.isOpen}
placeholderText='Enter date'/>)
}