Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-tag-input

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-tag-input - npm Package Compare versions

Comparing version 0.9.4 to 0.9.5

2

dist/modules/components/dropdown/tag-input-dropdown.component.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc