dual-listbox
Advanced tools
Comparing version 1.4.0-alpha2 to 1.4.0-alpha3
{ | ||
"name": "dual-listbox", | ||
"version": "1.4.0-alpha2", | ||
"version": "1.4.0-alpha3", | ||
"description": "Dual listbox for multi-select elements", | ||
@@ -5,0 +5,0 @@ "main": "dist/dual-listbox.js", |
@@ -194,3 +194,5 @@ import Sortable from 'sortablejs'; | ||
elements.sort((a, b) => { | ||
return Number(a.dataset.order) > Number(b.dataset.order); | ||
const na = parseInt(a.dataset.order); | ||
const nb = parseInt(b.dataset.order); | ||
return na > nb ? 1 : -1; | ||
}); | ||
@@ -398,2 +400,3 @@ | ||
listItem.dataset.id = option.value; | ||
console.log(option.dataset.order); | ||
if(option.dataset.order) { | ||
@@ -400,0 +403,0 @@ listItem.dataset.order = option.dataset.order; |
Sorry, the diff of this file is too big to display
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
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
254710
5103