Ngx-bootstrap: Dropdown close after date select

Created on 9 Aug 2019  路  4Comments  路  Source: valor-software/ngx-bootstrap

Bug description or feature request:

I'm creating a component to filter data in a table. The component is using dropdown. In dropdownMenu I can put various types of input e.g. checkboxes, text, datepicker.
Checkboxes and text work very well, but I've problem with datepicker. When I select a date, both datepicker and dropdown close, but I want to dropdown stay open.

It is possible to add [autoClose]="false" property, however I would like to keep the auto close behavior after outside click.

GIF

There is any solution to prevent dropdown close after date select?

Plunker/StackBlitz that reproduces the issue:

StackBlitz: https://stackblitz.com/edit/angular-nusk6m

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 5.1.2

Angular: 8.2.0

Bootstrap: 4.3.1

comp(datepicker) comp(dropdown) question

All 4 comments

@dl7 You can set [autoClose]="false" to the dropdown, like in this example: https://valor-software.com/ngx-bootstrap/#/dropdowns#autoclose

@ludmilanesvitiy
However, as I mentioned, I would like to keep the auto close behavior after outside click. If I set [autoClose]="false", it won't work.

I have the same problem.
Any solution ?

Same problem.
Any solution ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tpiros picture tpiros  路  3Comments

MihaiHoriaPopescu picture MihaiHoriaPopescu  路  3Comments

webdev48 picture webdev48  路  3Comments

tuoitrexuquang picture tuoitrexuquang  路  3Comments

pgeyman picture pgeyman  路  3Comments