saasufy-components 5.0.1 → 5.0.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/input-provider.js CHANGED
@@ -87,7 +87,8 @@ class InputProvider extends HTMLElement {
87
87
  }
88
88
  oldValue = this.inputElement.value;
89
89
  this.inputElement.value = newValue;
90
- if (oldValue !== newValue) {
90
+ if (oldValue !== newValue || this.forceTriggerChange) {
91
+ delete this.forceTriggerChange;
91
92
  this.triggerChange();
92
93
  }
93
94
  }
@@ -169,6 +170,11 @@ class InputProvider extends HTMLElement {
169
170
  }
170
171
  }
171
172
 
173
+ if (type === 'select') {
174
+ this.forceTriggerChange = true;
175
+ value = this.inputElement.value;
176
+ }
177
+
172
178
  this.updateInputClassList(value);
173
179
  this.appendChild(this.inputElement);
174
180
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {