Skip to content

Commit 14246de

Browse files
josephperrottandrewseguin
authored andcommitted
fix(popover-edit): remove fallthroughs in switch statement (#16281)
1 parent e7fc285 commit 14246de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cdk-experimental/popover-edit/lens-directives.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ export class CdkEditControl<FormValue> implements OnDestroy, OnInit {
110110
@HostListener('document:click', ['$event'])
111111
handlePossibleClickOut(evt: Event): void {
112112
if (closest(evt.target, EDIT_PANE_SELECTOR)) { return; }
113-
114113
switch (this.clickOutBehavior) {
115114
case 'submit':
116115
// Manually cause the form to submit before closing.
117116
this._triggerFormSubmit();
118-
// Fall through
117+
this.editRef.close();
118+
break;
119119
case 'close':
120120
this.editRef.close();
121-
// Fall through
121+
break;
122122
default:
123123
break;
124124
}

0 commit comments

Comments
 (0)