Open novfal opened 5 years ago
Potentially you need to save to temp variable in foreach.
we want MatMenu inside the foreach loop @SamProf
Chek |
---|
@{
|
Unfortunately this StackOverflow solution doesn't seem to work correctly. If you refresh the underlying data the MatMenu references are not recreated for some reason. Any workaround for this?
@salanford: I would say you should put the button and its menu into its own component. and use that in a foreach loop. I suspect this is not a MatBlazor bug. Not sure if it is a Blazor bug or not. If you can recreate this behavior without MatBlazor components I'd suggest to raise an issue directly at the Blazer repo.
MatMenu carrying last instance for all the listitems in foreach loop