react-datetime icon indicating copy to clipboard operation
react-datetime copied to clipboard

closeOnSelect not working

Open manohar-nyros opened this issue 6 years ago • 3 comments

I'm working with react-datetime latest version(2.15.0). But closeOnSelect is not working. Date picker is closing after selecting either date or time. <Datetime value={this.state.time} onChange={(event) => this.handleTimeChange(event)} dateFormat={"DD MMMM, YYYY"} className={'datepicker'} open={false} closeOnTab={true} viewDate={'Date'} timeFormat={"hh:mm A"} closeOnSelect={false} inputProps={{readOnly: true }} />

It's working when I removed onChange event.

manohar-nyros avatar Sep 24 '18 04:09 manohar-nyros

The logic of closeOnSelect has been refactored for the version 3. This shouldn't happen anymore when it is released.

arqex avatar Dec 19 '18 12:12 arqex

closeOnSelect doesn't work if one of parent is label Screen Shot 2020-07-10 at 14 27 21 Guess cause can be in event bubbling to label parent and automatically focusing on the input element

yurypapeka avatar Jul 10 '20 11:07 yurypapeka

closeOnSelect doesn't work if one of parent is label Screen Shot 2020-07-10 at 14 27 21 Guess cause can be in event bubbling to label parent and automatically focusing on the input element

Had this same issue, until I changed my <label></label> to <div></div>

bravo-stack avatar Aug 03 '23 10:08 bravo-stack