meteor-bootstrap_key-value-tag-input
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -391,6 +391,6 @@ 'use strict'; | ||
} | ||
var event = new CustomEvent("keyValueEntriesChanged", { detail: templateInstance.entries.get() }); | ||
if (templateInstance.element) { | ||
tracker.Tracker.afterFlush(function () { return window.setTimeout(function () { return templateInstance.element.dispatchEvent(event); }, 100); }); // make sure keyValueInput stays responsive; apply changes a little later | ||
} | ||
tracker.Tracker.afterFlush(function () { | ||
var event = new CustomEvent("keyValueEntriesChanged", { detail: templateInstance.entries.get() }); | ||
window.setTimeout(function () { var _a; return (_a = templateInstance.element) === null || _a === void 0 ? void 0 : _a.dispatchEvent(event); }, 100); // make sure keyValueInput stays responsive; apply changes a little later | ||
}); | ||
} | ||
@@ -397,0 +397,0 @@ function buildSuggestions(templateInstance) { |
{ | ||
"name": "meteor-bootstrap_key-value-tag-input", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "A reactive input field for tags and key-value data, developed for meteor apps running bootstrap.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -372,6 +372,6 @@ import { ReactiveVar } from "meteor/reactive-var"; | ||
} | ||
var event = new CustomEvent("keyValueEntriesChanged", { detail: templateInstance.entries.get() }); | ||
if (templateInstance.element) { | ||
Tracker.afterFlush(function () { return window.setTimeout(function () { return templateInstance.element.dispatchEvent(event); }, 100); }); // make sure keyValueInput stays responsive; apply changes a little later | ||
} | ||
Tracker.afterFlush(function () { | ||
var event = new CustomEvent("keyValueEntriesChanged", { detail: templateInstance.entries.get() }); | ||
window.setTimeout(function () { var _a; return (_a = templateInstance.element) === null || _a === void 0 ? void 0 : _a.dispatchEvent(event); }, 100); // make sure keyValueInput stays responsive; apply changes a little later | ||
}); | ||
} | ||
@@ -378,0 +378,0 @@ function buildSuggestions(templateInstance) { |
@@ -37,3 +37,3 @@ import { Blaze } from "meteor/blaze"; | ||
textInput: JQuery; | ||
element: HTMLDivElement; | ||
element?: HTMLDivElement; | ||
@@ -421,12 +421,12 @@ data: KeyValueInputTemplateData; | ||
if (!Tracker.inFlush()) { Tracker.flush(); } | ||
const event: KeyValueEntriesChangedEvent = new CustomEvent( | ||
"keyValueEntriesChanged", | ||
{ detail: templateInstance.entries.get() }, | ||
); | ||
if (templateInstance.element) { | ||
Tracker.afterFlush(() => window.setTimeout( | ||
() => templateInstance.element.dispatchEvent(event), | ||
Tracker.afterFlush(() => { | ||
const event: KeyValueEntriesChangedEvent = new CustomEvent( | ||
"keyValueEntriesChanged", | ||
{ detail: templateInstance.entries.get() }, | ||
); | ||
window.setTimeout( | ||
() => templateInstance.element?.dispatchEvent(event), | ||
100, | ||
)); // make sure keyValueInput stays responsive; apply changes a little later | ||
} | ||
); // make sure keyValueInput stays responsive; apply changes a little later | ||
}); | ||
} | ||
@@ -433,0 +433,0 @@ |
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
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
221068