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

An error using aMultiselect dropdown #1105

Open fashrista opened 2 years ago

fashrista commented 2 years ago

What happened:

Have been using the Multiselect and get 3 errors every time I open it:

Warning: Failed prop type: Multiselect: prop type popupTransition is invalid; it must be a function, usually from the prop-types package, but received undefined. in Multiselect (at tags-filter.js:179)

Warning: Failed prop type: List: prop type optionComponent is invalid; it must be a function, usually from the prop-types package, but received undefined. in List (created by Multiselect) in Multiselect (at tags-filter.js:179)

Warning: Failed prop type: Popup: prop type transition is invalid; it must be a function, usually from the prop-types package, but received undefined. in Popup (created by Multiselect) in Multiselect (at tags-filter.js:179)

What I expected to happen:

No errors

How to reproduce:

` <Multiselect dataKey="id123" onBlur={() => console.log('blur')} data={[1, 2, 3]} autoFocus textField="name" tagOptionComponent={({ dataItem }) => ( <div key={dataItem} style={{ background: dataItem.color, height: '18px' }} id={dataItem} onClose={() => console.log('close')}

{dataItem}

)} value={[]} onCreate={name => () => console.log('created: ' + name)} allowCreate="onFilter" onChange={value => console.log('value: ' + value)} />` slika

fashrista commented 2 years ago

Possible solution:

https://stackoverflow.com/questions/39037977/failed-prop-type-chat-prop-type-room-is-invalid-it-must-be-a-function-usua