Blazored / Typeahead

Typeahead control for Blazor applications
https://blazored.github.io/Typeahead/
MIT License
433 stars 103 forks source link

[Question] Clear Typeahead component searchtext value from code (via button click). #246

Open scarybook opened 2 years ago

scarybook commented 2 years ago

I use few typeaheads in a form and I need to clear some of them (but not all) when a button is clicked. I tried to set necessary binded values to null, but this throws an exception.

How can I clear these values in proper way? How to clear some/all typeaheads if one of them is cleared?

ShantoLives commented 2 years ago

I think you're looking for the workaround here: https://github.com/Blazored/Typeahead/issues/230#issuecomment-872090026