Timeline for MudChipField SearchText value is not updating or reflecting correctly in the UI
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 10 at 9:31 | comment | added | Aishh | Hi @RBee, I'm able to reproduce the issue with the same code which I shared in the snippet as you suggested. But, unfortunately I'm unable to generate the snippet link to share. Currently, "Try MudExtensions (trymudextensions.pages.dev)" does not have a built-in feature to save snippets directly or generate shareable links for snippets. It's primarily a playground to test and experiment with MudBlazor components. | |
Jul 9 at 16:27 | comment | added | RBee | Unfortunately with the code so far I cannot reproduce the error. If you'd like more help then please use the snippet link in my earlier comment to create a reproducible environment with the error you encounter. | |
Jul 9 at 6:34 | comment | added | Aishh | @RBee, I followed your suggestions, but it still isn't working. Specifically, I ensured that the parent component uses the SearchValueChanged EventCallback to modify SearchText. However, I did not assign SearchText in the SearchValueChangeAsync method, nor did I modify any parameters in the ClearChipAsync method. Instead, I used the EventCallbacks to notify the parent of changes, which then passed them down to my component as parameters. | |
Jul 8 at 14:12 | comment | added | RBee | 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. | |
Jul 8 at 8:06 | comment | added | Aishh | @RBee I have updated the question and shared the detailed code to reproduce the issue. Thanks | |
Jul 8 at 8:03 | history | edited | Aishh | CC BY-SA 4.0 |
added 1639 characters in body
|
Jul 5 at 17:20 | comment | added | RBee |
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
|
|
Jul 5 at 14:57 | comment | added | Aishh | @RBee private async Task SearchValueChangeAsync(string value) { SearchText = value; await SearchValueChanged.InvokeAsync(SearchText); } | |
Jul 5 at 13:58 | history | edited | Qiang Fu |
edited tags
|
|
Jul 5 at 13:57 | answer | added | Qiang Fu | timeline score: 0 | |
Jul 5 at 12:04 | comment | added | RBee |
Can you also share your SearchValueChangeAsync method code
|
|
S Jul 5 at 8:44 | review | First questions | |||
Jul 5 at 18:40 | |||||
S Jul 5 at 8:44 | history | asked | Aishh | CC BY-SA 4.0 | created from wizard |