jquense / react-widgets

Polished, feature rich, accessible form inputs built with React
http://jquense.github.io/react-widgets/
MIT License
2.34k stars 395 forks source link

renderListItem not found in types of Dropdownlist #1072

Closed djapal closed 3 years ago

djapal commented 3 years ago

I'm trying to add renderListItem as property in a Dropdownlist component in a typescript file but typescript complains that this is not found. I checked with version "react-widgets": "4.4.11" and "@types/react-widgets": "4.4.4"

jquense commented 3 years ago

renderListItem isn't available in v4, its a v5 prop

djapal commented 3 years ago

tried with 5.0.3 still the issue is there. is there another version of @types/react-widgets? 4.4.4 doesnt include this property

jquense commented 3 years ago

v5 includes it's own type definitions, you don't need @types/react-widgets with it

djapal commented 3 years ago

great! thank you for the hint. I'll try it again (need to migrate some stuff!)