-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(datepicker): close popup on outside click
BREAKING CHANGE: datepicker popup will now close on outside click by default. Because of this datepicker will NOT open with `(click)="d.open()"` and `(click)="d.toggle()"` unless you mark the element with click handler with `[ngbDatepickerToggle]="d"` BEFORE: ```html <input ngbDatepicker #d="ngbDatepicker" /> <button (click)="d.toggle()">...</button> <button (click)="d.open()">...</button> ``` AFTER: ```html <input ngbDatepicker #d="ngbDatepicker" /> <button [ngbDatepickerToggle]="d" (click)="d.toggle()">...</button> <button [ngbDatepickerToggle]="d" (click)="d.open()">...</button> ``` Also note that `[autoClose]` input now accepts additional 'inside' and 'outside' values. Closes #783 Closes #2440
- Loading branch information
1 parent
2495570
commit a9ab409
Showing
11 changed files
with
234 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.