diff --git a/src/lib/select/select.html b/src/lib/select/select.html index a37b2f796616..61e55e51a4e9 100644 --- a/src/lib/select/select.html +++ b/src/lib/select/select.html @@ -11,7 +11,7 @@
-
+
diff --git a/src/lib/select/select.ts b/src/lib/select/select.ts index c82cc0fcecbe..91d9c513979d 100644 --- a/src/lib/select/select.ts +++ b/src/lib/select/select.ts @@ -362,8 +362,8 @@ export class MdSelect implements AfterContentInit, ControlValueAccessor, OnDestr } /** - * When the panel is finished animating, emits an event and focuses - * an option if the panel is open. + * When the panel element is finished transforming in (though not fading in), it + * emits an event and focuses an option if the panel is open. */ _onPanelDone(): void { if (this.panelOpen) { @@ -372,7 +372,13 @@ export class MdSelect implements AfterContentInit, ControlValueAccessor, OnDestr } else { this.onClose.emit(); } + } + /** + * When the panel content is done fading in, the _panelDoneAnimating property is + * set so the proper class can be added to the panel. + */ + _onFadeInDone(): void { this._panelDoneAnimating = this.panelOpen; }