mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(popover-edit): remove fallthroughs in switch statement (#16281)
This commit is contained in:
@@ -110,15 +110,15 @@ export class CdkEditControl<FormValue> implements OnDestroy, OnInit {
|
||||
@HostListener('document:click', ['$event'])
|
||||
handlePossibleClickOut(evt: Event): void {
|
||||
if (closest(evt.target, EDIT_PANE_SELECTOR)) { return; }
|
||||
|
||||
switch (this.clickOutBehavior) {
|
||||
case 'submit':
|
||||
// Manually cause the form to submit before closing.
|
||||
this._triggerFormSubmit();
|
||||
// Fall through
|
||||
this.editRef.close();
|
||||
break;
|
||||
case 'close':
|
||||
this.editRef.close();
|
||||
// Fall through
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user