ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

feat(datepicker): Support selection without implicit hide

Open sebek64 opened this issue 7 years ago • 4 comments

Bug description or feature request:

It'd be useful to allow disabling auto-hide on date selection. Use-case: a custom component combines datepicker with a custom timepicker. Visibility toggling is handled by the wrapping component. Currently, I need to call show() in onHidden (and asynchronously inside setTimeout, since it doesn't work directly).

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 2.0.3

Angular: 4

Bootstrap: 3

sebek64 avatar Apr 06 '18 17:04 sebek64

thank you, you gave me a work around this, i need the datapicker to keep open by default and its value gets changed based on a click to another element which holds the range value, but the picker keeps closing and i have to click the input so it shows again. it would be great if they can solve this so it keeps shown

mapsgeek avatar Apr 30 '18 02:04 mapsgeek

👍 it will be usefull to have a config option like hideOnSelect to disable auto-hide on date selection

neilime avatar Jun 15 '18 14:06 neilime

Bumping this! When I use the workaround, the daterangepicker flickers on and off no matter how short the setTimeout.

jecarney avatar Aug 26 '20 17:08 jecarney

Hi, what the update on this feature? Right now, I am using the datepicker with time and once the date is selected the picker closes even though a time has not been selected.

gibahjoe avatar Mar 29 '23 10:03 gibahjoe