telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
467 stars 216 forks source link

[DateRange] Popup is not closed after range is selected #3202

Closed JaapMosselman closed 3 years ago

JaapMosselman commented 3 years ago

Describe the bug When I select the start and then the end date, I expect the popup to close automatically (or at least an option to enable that).

To Reproduce See https://www.telerik.com/kendo-angular-ui/components/dateinputs/daterange/popup/

Expected behavior Close after selection of end date. See also JQuery version: https://demos.telerik.com/kendo-ui/daterangepicker/api

mbechev commented 3 years ago

Hi @JaapMosselman,

DateRange component popup can be closed programmatically by using the toggle method of the <kendo-daterange-popup>. The toggle method needs to be applied on valueChange event of the <kendo-dateinput kendoDateRangeEndInput ...>.

Please check the following example:

https://stackblitz.com/edit/angular-5jofqm