Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • Can you also share your SearchValueChangeAsync method code
    – RBee
    Commented Jul 5 at 12:04
  • @RBee private async Task SearchValueChangeAsync(string value) { SearchText = value; await SearchValueChanged.InvokeAsync(SearchText); }
    – Aishh
    Commented Jul 5 at 14:57
  • Why are you calling SearchValueChanged.InvokeAsync(SearchText) is this component a child component? Regardless, I think you should share more of your code to reproduce the error. Better if you can create a working reproducible snippet here trymudextensions.pages.dev/snippet
    – RBee
    Commented Jul 5 at 17:20
  • @RBee I have updated the question and shared the detailed code to reproduce the issue. Thanks
    – Aishh
    Commented Jul 8 at 8:06
  • If you're passing in SearchText as a parameter and the parent component is using the SearchValueChanged EventCallback and modifying SearchText then you shouldn't assign SearchText in the SearchValueChangeAsync. Similarly in the ClearChipAsync method you shouldn't modify any of the parameters - use the EventCallbacks to notify the parent of change which will pass it down the your component as parameters.
    – RBee
    Commented Jul 8 at 14:12