Hi Parth,
Greetings from Syncfusion support.
By default, while changing the value from the AutoComplete component either by backspace, selection or clear value using clear icon, then the change event of the component will be triggered.
Else, if you want to capture the event when you clear the values using clear icon, we suggest you to bind the event for the clear icon as mentioned in the below code example.
|
ngAfterViewInit() {
this.localObj.element.addEventListener('input', e => {
if (!this.isFirst) {
this.isFirst = true;
this.localObj.element.parentElement
.querySelector('.e-clear-icon')
.addEventListener('mousedown', args => {
console.log('Clicked on clear icon');
});
}
});
} |
Regards,
Berly B.C