fix(popover-edit): remove fallthroughs in switch statement (#16281)

This commit is contained in:
Joey Perrott
2019-06-12 14:43:45 -07:00
committed by mmalerba
parent c3ff1755e3
commit 69b1b2ec92
@@ -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;
}