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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Broken Typings on ButtonComponent

Thread ID:





141188 Nov 28,2018 09:25 PM UTC Nov 29,2018 01:04 PM UTC React - EJ 2 1
Tags: Button
Curtis Rutland
Asked On November 28, 2018 09:25 PM UTC

Hello. Trying to use ButtonComponent in a Typescript file is causing problems. Specifically, the onClick property of ButtonComponent is defined as "MouseEventInit | undefined". This is incorrect typing, and when you try to use a function in it you get a compiler error. If you cast the value you set to "any" it works, and since all of your examples use the "bind" function which returns an "any" type, this is not obvious. But the typing is actually broken and causes compilation to fail. 

Christopher Issac Sunder K [Syncfusion]
Replied On November 29, 2018 01:04 PM UTC

Hi Curtis, 

Thank you for contacting Syncfusion support. 
We are able to reproduce the issue with “Incorrect Typing in onclick event in the React base” in our end. So, we have logged a defect report for the same and the fix will be included in our Essential Studio 2018 Volume 4 Service Pack-1 release which will be expected to be release in the month of January, 2019.  

We appreciate your patience until then. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon