@nys-cui/cui-formpill 0.2.0 → 0.2.2

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
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "main": "./dist/js/cui-formpill.js",
8
8
  "type": "module",
9
- "version": "0.2.0",
9
+ "version": "0.2.2",
10
10
  "scripts": {
11
11
  "clean": "rm -rf ./dist",
12
12
  "build": "npm run clean && cui --dep",
@@ -412,6 +412,10 @@ class CUI_FORMPILL extends HTMLElement {
412
412
  this.addPillfromJSON();
413
413
 
414
414
  } else if (reset === true) {
415
+ if(this._state.configData?.filterCriteria?.loadedPills){
416
+
417
+ this._state.configData.filterCriteria.loadedPills = []
418
+ }
415
419
  this.addPillfromJSON();
416
420
  }
417
421
 
@@ -897,6 +901,9 @@ class CUI_FORMPILL extends HTMLElement {
897
901
  if (controls.value.multiple) {
898
902
  this.dValueField.setAttribute('multiple', true)
899
903
  }
904
+ if (controls.value.codedesc) {
905
+ this.dValueField.setAttribute('codedesc', true)
906
+ }
900
907
  if (controls.value.search) {
901
908
  this.dValueField.setAttribute('search', true)
902
909
  }