Select component inputValue how can reset?

selectComponent.clearvalue()
selectComponent.setValue('')

doesn't work. how can i reset inputValue?

Hey @finn, happy to help! Where are you calling these functions? You can easily put an event handler on a button onClick event to achieve this functionality:

Also, note that the V in .clearValue() needs to be capitalized:


Screen Recording 2021-10-22 at 11.59.19 AM.mov

Hi @Jay, thanks for replying. The method you told me is that the normal value is initialized, but the input value is not initialized.

Hi @finn, I think you can initialize value using setValue().

I hope this can help!
Thanks!

1 Like

@Vinkal Setvalue in case of select is not working.

@ishi8
Hey, it's still working at my end.