jsgantt-improved
Advanced tools
Comparing version 2.4.10 to 2.4.11
@@ -283,3 +283,3 @@ "use strict"; | ||
var selectInputOrButton = ['SELECT', 'INPUT', 'BUTTON'].filter(function (k) { return k === vTmpCell.children[0].children[0].tagName; }); | ||
if (selectInputOrButton) { | ||
if (selectInputOrButton && selectInputOrButton.length > 0) { | ||
exports.addListener(event, function (e) { | ||
@@ -286,0 +286,0 @@ if (callback) { |
@@ -19,5 +19,5 @@ "use strict"; | ||
if (choices) { | ||
var found = choices.find(function (c) { return c.id == value || c.name == value; }); | ||
if (found) { | ||
value = found.id; | ||
var found = choices.filter(function (c) { return c.id == value || c.name == value; }); | ||
if (found && found.length > 0) { | ||
value = found[0].id; | ||
} | ||
@@ -24,0 +24,0 @@ else { |
{ | ||
"name": "jsgantt-improved", | ||
"version": "2.4.10", | ||
"version": "2.4.11", | ||
"description": "jsgantt-improved", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -304,3 +304,3 @@ import { | ||
const selectInputOrButton = ['SELECT', 'INPUT', 'BUTTON'].filter(k => k === vTmpCell.children[0].children[0].tagName); | ||
if (selectInputOrButton) { | ||
if (selectInputOrButton && selectInputOrButton.length > 0) { | ||
addListener(event, function (e) { | ||
@@ -307,0 +307,0 @@ if (callback) { |
@@ -15,5 +15,5 @@ import { addFormatListeners } from "../events"; | ||
if (choices) { | ||
const found = choices.find(c => c.id == value || c.name == value); | ||
if (found) { | ||
value = found.id; | ||
const found = choices.filter(c => c.id == value || c.name == value); | ||
if (found && found.length > 0) { | ||
value = found[0].id; | ||
} else { | ||
@@ -20,0 +20,0 @@ choices.push({ id: value, name: value }); |
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
Sorry, the diff of this file is too big to display
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
5328088