To click on image-icon, of input box of react-datepicker are not working
up vote
0
down vote
favorite
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'/>)
}
javascript datepicker react-datepicker
add a comment |
up vote
0
down vote
favorite
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'/>)
}
javascript datepicker react-datepicker
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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'/>)
}
javascript datepicker react-datepicker
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'/>)
}
javascript datepicker react-datepicker
javascript datepicker react-datepicker
asked Nov 19 at 12:00
Anupam Maurya
365
365
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53374206%2fto-click-on-image-icon-of-input-box-of-react-datepicker-are-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown