sr-npm 1.7.991 → 1.7.992
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -110,6 +110,7 @@ async function handleParams(_$w,param,values) {
|
|
|
110
110
|
console.log("values: ",values);
|
|
111
111
|
console.log("valuesAsArray: ",valuesAsArray);
|
|
112
112
|
let selectedIndices=[];
|
|
113
|
+
|
|
113
114
|
for(const value of valuesAsArray) {
|
|
114
115
|
const decodedValue = decodeURIComponent(value);
|
|
115
116
|
console.log("decodedValue: ",decodedValue);
|
|
@@ -122,9 +123,11 @@ async function handleParams(_$w,param,values) {
|
|
|
122
123
|
if(option) {
|
|
123
124
|
const optionIndex=getOptionIndexFromCheckBox(_$w(`#${FiltersIds[field.title]}CheckBox`).options,option.value);
|
|
124
125
|
console.log("optionIndex: ",optionIndex);
|
|
125
|
-
console.log("
|
|
126
|
+
console.log("before {FiltersIds[field.title]}CheckBox).selectedIndices: ",_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices);
|
|
126
127
|
selectedIndices.push(optionIndex);
|
|
127
|
-
_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices
|
|
128
|
+
_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices=selectedIndices;
|
|
129
|
+
console.log("selectedIndices: ",selectedIndices);
|
|
130
|
+
console.log("after {FiltersIds[field.title]}CheckBox).selectedIndices: ",_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices);
|
|
128
131
|
let existing = selectedByField.get(field._id) || [];
|
|
129
132
|
existing.push(option.value);
|
|
130
133
|
selectedByField.set(field._id, existing);
|