#Searchable Select not clearing the value when input set to ''

3 messages · Page 1 of 1 (latest)

upbeat cloak
#

I have assigned an empty string to the form's value successfully, but the select element is still displaying the previous value.

....
<Select
label="Users"
placeholder="Pick value"
{...form.getInputProps(data${index}.users)}
data={['React', 'Angular', 'Vue', 'Svelte']}
searchable
/>

...
<Button onClick={(index) => form.setFieldValue(data${index}.users, '')}>

prisma wren
zealous terrace