ng2-material-dropdown
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -191,4 +191,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
Ng2DropdownButton.prototype.getPosition = function () { | ||
var el = this.element.nativeElement; | ||
return el.getBoundingClientRect(); | ||
return this.element.nativeElement.getBoundingClientRect(); | ||
}; | ||
@@ -658,6 +657,5 @@ __decorate([ | ||
Ng2DropdownMenu.prototype.ngOnInit = function () { | ||
var _this = this; | ||
var body = document.querySelector('body'); | ||
body.appendChild(this.element.nativeElement); | ||
this.renderer.listen(body, 'keyup', function ($event) { return _this.handleKeypress($event); }); | ||
this.renderer.listen(body, 'keyup', this.handleKeypress); | ||
}; | ||
@@ -868,3 +866,3 @@ __decorate([ | ||
module.exports = "<div class='ng2-menu-item'\n [class.ng2-menu-item--selected]=\"isSelected\"\n (click)=\"click()\"\n (mouseover)=\"select()\">\n <ng-content></ng-content>\n</div>\n"; | ||
module.exports = "<div class='ng2-menu-item'\n [class.ng2-menu-item--selected]=\"isSelected\"\n [attr.role]=\"button\"\n (click)=\"click()\"\n (mouseover)=\"select()\">\n <ng-content></ng-content>\n</div>\n"; | ||
@@ -915,3 +913,3 @@ /***/ }, | ||
module.exports = "<!-- CONTAINER -->\n<div class=\"ng2-dropdown-menu-container ng2-dropdown-menu-container--{{ width }}\"\n [class.ng2-dropdown-menu-container--open]=\"state.isVisible\"\n tabindex=\"0\">\n\n <!-- MENU -->\n <div class='ng2-dropdown-menu' @fade=\"state.toString()\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<!-- BACKDROP -->\n<div class=\"ng2-dropdown-backdrop\" [hidden]=\"!state.isVisible\" (click)=\"hide()\"></div>\n"; | ||
module.exports = "<!-- CONTAINER -->\n<div class=\"ng2-dropdown-menu-container ng2-dropdown-menu-container--{{ width }}\"\n [class.ng2-dropdown-menu-container--open]=\"state.isVisible\"\n tabindex=\"0\">\n\n <!-- MENU -->\n <div class='ng2-dropdown-menu' [@fade]=\"state.toString()\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<!-- BACKDROP -->\n<div class=\"ng2-dropdown-backdrop\" [hidden]=\"!state.isVisible\" (click)=\"hide()\"></div>\n"; | ||
@@ -918,0 +916,0 @@ /***/ }, |
@@ -22,4 +22,3 @@ "use strict"; | ||
Ng2DropdownButton.prototype.getPosition = function () { | ||
var el = this.element.nativeElement; | ||
return el.getBoundingClientRect(); | ||
return this.element.nativeElement.getBoundingClientRect(); | ||
}; | ||
@@ -26,0 +25,0 @@ __decorate([ |
@@ -79,6 +79,5 @@ "use strict"; | ||
Ng2DropdownMenu.prototype.ngOnInit = function () { | ||
var _this = this; | ||
var body = document.querySelector('body'); | ||
body.appendChild(this.element.nativeElement); | ||
this.renderer.listen(body, 'keyup', function ($event) { return _this.handleKeypress($event); }); | ||
this.renderer.listen(body, 'keyup', this.handleKeypress); | ||
}; | ||
@@ -85,0 +84,0 @@ __decorate([ |
{ | ||
"name": "ng2-material-dropdown", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Angular 2 material-like Dropdown Component", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
Sorry, the diff of this file is not supported yet
121566
1450