#623 se-input changes event trigger issue fixed
parent
cc2bbde8e1
commit
2414f85f4a
|
@ -154,11 +154,16 @@ export class SEInput extends HTMLElement {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
connectedCallback () {
|
connectedCallback () {
|
||||||
this.addEventListener('change', (e) => {
|
this.$input.addEventListener('change', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.value = e.target.value;
|
this.value = e.target.value;
|
||||||
|
this.dispatchEvent(this.$event);
|
||||||
|
});
|
||||||
|
this.$input.addEventListener('keyup', (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
this.value = e.target.value;
|
||||||
|
this.dispatchEvent(this.$event);
|
||||||
});
|
});
|
||||||
this.dispatchEvent(this.$event);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Register
|
// Register
|
||||||
|
|
Loading…
Reference in New Issue