ng2-material-dropdown
Advanced tools
Comparing version 0.6.9 to 0.7.0
@@ -391,3 +391,5 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
} | ||
if (this.focusFirstElement && !this.state.dropdownState.selectedItem) { | ||
if (this.focusFirstElement && | ||
this.items.first && | ||
!this.state.dropdownState.selectedItem) { | ||
this.state.dropdownState.select(this.items.first, false); | ||
@@ -394,0 +396,0 @@ } |
@@ -111,3 +111,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
if (this.focusFirstElement && !this.state.dropdownState.selectedItem) { | ||
if (this.focusFirstElement && | ||
this.items.first && | ||
!this.state.dropdownState.selectedItem) { | ||
this.state.dropdownState.select(this.items.first, false); | ||
@@ -114,0 +116,0 @@ } |
{ | ||
"name": "ng2-material-dropdown", | ||
"version": "0.6.9", | ||
"description": "Angular 2 material-like Dropdown Component", | ||
"version": "0.7.0", | ||
"description": "Angular material-like dropdown component", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "prepublish": "npm run build", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
169653
1490