@danielgindi/selectbox 1.0.110 → 1.0.112

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/lib/SelectBox.js CHANGED
@@ -953,6 +953,13 @@ class SelectBox {
953
953
  remove(p.clearButtonWrapper);
954
954
  delete p.clearButtonWrapper;
955
955
 
956
+ if (multi &&
957
+ p.selectedValues &&
958
+ p.selectedValues.length === 1 &&
959
+ Array.isArray(p.selectedValues[0][p.valueProp])) {
960
+ this.setSelectedValues(/**@type Array*/p.selectedValues[0][p.valueProp]);
961
+ }
962
+
956
963
  this._scheduleSync('full');
957
964
 
958
965
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgindi/selectbox",
3
- "version": "1.0.110",
3
+ "version": "1.0.112",
4
4
  "description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",
5
5
  "main": "dist/lib.cjs.min.js",
6
6
  "module": "lib/index.js",
@@ -31,22 +31,22 @@
31
31
  "homepage": "https://github.com/danielgindi/selectbox#readme",
32
32
  "license": "MIT",
33
33
  "devDependencies": {
34
- "@babel/core": "^7.22.9",
35
- "@babel/preset-env": "^7.22.9",
36
- "@babel/runtime": "^7.22.6",
37
- "@rollup/plugin-babel": "^6.0.3",
38
- "@rollup/plugin-commonjs": "^25.0.3",
39
- "@rollup/plugin-node-resolve": "^15.1.0",
40
- "@rollup/plugin-terser": "^0.4.3",
41
- "core-js": "^3.31.1",
42
- "eslint": "^8.45.0",
34
+ "@babel/core": "^7.23.2",
35
+ "@babel/preset-env": "^7.23.2",
36
+ "@babel/runtime": "^7.23.2",
37
+ "@rollup/plugin-babel": "^6.0.4",
38
+ "@rollup/plugin-commonjs": "^25.0.7",
39
+ "@rollup/plugin-node-resolve": "^15.2.3",
40
+ "@rollup/plugin-terser": "^0.4.4",
41
+ "core-js": "^3.33.1",
42
+ "eslint": "^8.52.0",
43
43
  "eslint-formatter-codeframe": "^7.32.1",
44
- "eslint-plugin-vue": "^9.15.1",
44
+ "eslint-plugin-vue": "^9.17.0",
45
45
  "fs-extra": "^11.1.1",
46
46
  "husky": "^8.0.3",
47
47
  "pinst": "^3.0.0",
48
- "rollup": "^3.26.3",
49
- "sass": "^1.64.0"
48
+ "rollup": "^4.1.4",
49
+ "sass": "^1.69.4"
50
50
  },
51
51
  "dependencies": {
52
52
  "@danielgindi/dom-utils": "^1.0.8",