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

Broken Typings on ButtonComponent

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. 

1 Reply

CI Christopher Issac Sunder K Syncfusion Team 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. 

Thanks, 
Christo

Loader.
Live Chat Icon For mobile
Up arrow icon