kendo-react icon indicating copy to clipboard operation
kendo-react copied to clipboard

valueRender of the DropDownList passes React.ReactElement<HTMLSpanElement>, but it should be React.ReactHTMLElement<HTMLSpanElement> instead

Open kdikov82 opened this issue 3 years ago • 0 comments

The TypeScript type definition for the "valueRender" prop on the "DropDownList" element seems to be incorrect. The first argument to the function is defined as "React.ReactElement<HTMLSpanElement>", but the first type parameter to "ReactElement" is supposed to be the props type, not the element type. This makes TypeScript think that the "element.props" value is actually an "HTMLSpanElement", whereas it should be "React.HTMLAttributes<HTMLSpanElement>"

More information in ticket: https://supportheroes.telerik.com/ticket/1572631

kdikov82 avatar Jul 22 '22 11:07 kdikov82