kendo-react
kendo-react copied to clipboard
valueRender of the DropDownList passes React.ReactElement<HTMLSpanElement>, but it should be React.ReactHTMLElement<HTMLSpanElement> instead
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