@itrocks/autocomplete 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. package/autocomplete.js +6 -0
  2. package/package.json +1 -1
package/autocomplete.js CHANGED
@@ -148,6 +148,12 @@ export class AutoComplete {
148
148
  }
149
149
  onInputValueChange() {
150
150
  this.input.dataset.lastValue = this.input.value;
151
+ this.input.dispatchEvent(new Event('input', { bubbles: true }));
152
+ if (document.activeElement !== this.input) {
153
+ {
154
+ this.input.dispatchEvent(new Event('change', { bubbles: true }));
155
+ }
156
+ }
151
157
  this.autoEmptyClass();
152
158
  }
153
159
  onKeyDown(event) {
package/package.json CHANGED
@@ -40,5 +40,5 @@
40
40
  },
41
41
  "type": "module",
42
42
  "types": "./autocomplete.d.ts",
43
- "version": "0.0.5"
43
+ "version": "0.0.6"
44
44
  }