The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
So in the newest version of @syncfusion/[email protected] the change-event triggers twice which broke my code.
This is the console.log:
{id: 2, checked: true} ---> first call
KlientHilfsmittelSituationComponent.html:15 ERROR TypeError: Cannot read property 'checked' of undefined
at KlientHilfsmittelSituationComponent.push../src/app/klient/components/klient-tabs/klient-hilfsmittel-situation/klient-hilfsmittel-situation.component.ts.KlientHilfsmittelSituationComponent.onCheckboxChange (klient-klient-module.js:1974)
at Object.eval [as handleEvent] (KlientHilfsmittelSituationComponent.html:16)
at handleEvent (vendor.js:49163)
at callWithDebugContext (vendor.js:50256)
at Object.debugHandleEvent [as handleEvent] (vendor.js:49959)
at dispatchEvent (vendor.js:46622)
at vendor.js:48102
at SafeSubscriber.schedulerFn [as _next] (vendor.js:42475)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (vendor.js:221483)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next (vendor.js:221421)
SISilambarasan I Syncfusion Team October 22, 2018 12:24 PM UTC
Hi Paul,
Thank you for using Syncfusion products.
We can reproduce the reported issue “Change Event triggers two times in CheckBox – Angular” in our end and we confirmed this as a defect. We will fix this issue and include it in our upcoming patch release on October 30, 2018. We appreciate your patience until then.
Meanwhile, we suggest you to resolve this issue with the below workaround solution.
thanks for your reply! Made me realize I forgot to add the undefined check to the !e.checked part. Now everything works.
Thanks
SISilambarasan I Syncfusion Team October 23, 2018 05:32 PM UTC
Hi Paul,
Thanks for your update.
As we stated earlier, we will include the fix for the issue “Change Event triggers two times in CheckBox – Angular” in our upcoming patch release on October 30, 2018.
Please let us know if you need any further assistance.
Regards,
Silambarasan
Need More Help?
Get personalized assistance from our support team.