@itrocks/autocomplete 0.0.4 → 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.
- package/autocomplete.js +6 -0
- 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