From 01d02764604489c6ec583a53bafcf4eb897de7ca Mon Sep 17 00:00:00 2001 From: Andy Dvorak Date: Mon, 11 Feb 2019 13:06:31 -0800 Subject: [PATCH] WIP: Add explicit nullable to type --- packages/mdc-dialog/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mdc-dialog/index.ts b/packages/mdc-dialog/index.ts index 52666100ac4..496a9d8400b 100644 --- a/packages/mdc-dialog/index.ts +++ b/packages/mdc-dialog/index.ts @@ -93,7 +93,7 @@ class MDCDialog extends MDCComponent { this.buttons_ = [].slice.call(this.root_.querySelectorAll(strings.BUTTON_SELECTOR)); this.defaultButton_ = this.root_.querySelector(strings.DEFAULT_BUTTON_SELECTOR); this.focusTrapFactory_ = focusTrapFactory; - this.initialFocusEl_ = initialFocusEl as HTMLElement; + this.initialFocusEl_ = initialFocusEl as HTMLElement | null; this.buttonRipples_ = []; for (const buttonEl of this.buttons_) {