ng2-tag-input
Advanced tools
Comparing version 0.9.4 to 0.9.5
@@ -28,3 +28,3 @@ import { TemplateRef, QueryList } from '@angular/core'; | ||
ngOnInit(): void; | ||
updatePosition(position: any): void; | ||
updatePosition(): void; | ||
readonly isVisible: boolean; | ||
@@ -31,0 +31,0 @@ onHide(): EventEmitter<Ng2Dropdown>; |
@@ -68,4 +68,4 @@ "use strict"; | ||
}; | ||
TagInputDropdown.prototype.updatePosition = function (position) { | ||
return this.dropdown.menu.updatePosition(position); | ||
TagInputDropdown.prototype.updatePosition = function () { | ||
this.dropdown.menu.updatePosition(this.tagInput.inputForm.getElementPosition()); | ||
}; | ||
@@ -112,2 +112,3 @@ Object.defineProperty(TagInputDropdown.prototype, "isVisible", { | ||
TagInputDropdown.prototype.show = function () { | ||
var _this = this; | ||
var value = this.tagInput.inputForm.value.value.trim(); | ||
@@ -128,3 +129,3 @@ var position = this.tagInput.inputForm.getElementPosition(); | ||
this.setItems(items); | ||
if (showDropdown) { | ||
if (showDropdown && !this.isVisible) { | ||
this.dropdown.show(position); | ||
@@ -135,2 +136,7 @@ } | ||
} | ||
if (this.isVisible) { | ||
setTimeout(function () { | ||
_this.updatePosition(); | ||
}, 0); | ||
} | ||
}; | ||
@@ -141,3 +147,3 @@ TagInputDropdown.prototype.scrollListener = function () { | ||
} | ||
this.updatePosition(this.tagInput.inputForm.getElementPosition()); | ||
this.updatePosition(); | ||
}; | ||
@@ -144,0 +150,0 @@ TagInputDropdown.prototype.getMatchingItems = function (value) { |
@@ -13,2 +13,3 @@ "use strict"; | ||
var core_1 = require("@angular/core"); | ||
var KeyboardEvent = global.KeyboardEvent; | ||
var tag_ripple_component_1 = require("./tag-ripple.component"); | ||
@@ -157,3 +158,3 @@ var TagComponent = (function () { | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [KeyboardEvent]), | ||
__metadata("design:paramtypes", [Object]), | ||
__metadata("design:returntype", void 0) | ||
@@ -160,0 +161,0 @@ ], TagComponent.prototype, "keydown", null); |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 35); | ||
/******/ return __webpack_require__(__webpack_require__.s = 36); | ||
/******/ }) | ||
@@ -103,3 +103,3 @@ /************************************************************************/ | ||
/***/ 35: | ||
/***/ 36: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -106,0 +106,0 @@ |
@@ -436,2 +436,5 @@ import { | ||
fixture.detectChanges(); | ||
tick(); | ||
discardPeriodicTasks(); | ||
@@ -438,0 +441,0 @@ })); |
{ | ||
"name": "ng2-tag-input", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "Tag Input component for Angular 2", | ||
@@ -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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
514133
4955
2