kendo-react
kendo-react copied to clipboard
Allow using numbers (array) for the Multiselect values
Ticket ID: 1575503
Currently setting a number array directly to the MultiSelect values prop is not allowed (the documented allowed value is any[]):
<MultiSelect data={[1]} value={[1]} />
Possible workarounds:
- Bind the data to an object, containing text as string and values as numbers: https://stackblitz.com/edit/react-ftvefm-fbrs27?file=app%2Fmain.jsx
- pass directly a string to the value prop array to the
value:<MultiSelect data={[1, 3, 4]} value={["1"]} onChange={handleChange} />