We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Click-Event on ejs-checkbox is triggered twice

Hi,
i have an ejs-checkbox with a click event.

For some reason this event is triggered twice if i click the checkbox once.

Is this a bug?
Is there a way to get this clickevent only trigger once?

See my stackblitz https://stackblitz.com/edit/angular-pgrqwk?file=src/app/app.component.html


1 Reply 1 reply marked as answer

YA YuvanShankar Arunagiri Syncfusion Team November 14, 2022 12:59 PM UTC

Query: Is there a way to get this clickevent only trigger once?


We don't have a " Click event" for the checkbox. So, please use the "Change Event" of checkbox. You can refer to the below API and sample link.


API link: https://ej2.syncfusion.com/angular/documentation/api/check-box/#change

Sample link: https://stackblitz.com/edit/angular-ypnuss?file=src%2Fapp%2Fapp.component.html

<ejs-checkbox label="Penicilline" (change)="onClicked()"></ejs-checkbox>


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon