SamProf / MatBlazor

Material Design components for Blazor and Razor Components
http://www.matblazor.com
MIT License
2.84k stars 384 forks source link

Deleting Element in MatList doesnt delete MatMenu reference #927

Open FroggyLiz opened 2 years ago

FroggyLiz commented 2 years ago

Describe the question When having a MatMenu in a MatList as part of the MatListItem, upon Deleting one item all other MatMenu's shuffle down one spot when clicking on the Button.

Probably a lot more clear in the Blazorfiddle, upon deleting Element '5' the MatMenu of 6,7,8 and 9 is a place down and the refence isnt corrent anymore. Is there any way to solve this problem? Im not sure if this is a bug or if i Implemented it wrong...

Blazorfiddle link https://blazorfiddle.com/s/w5ri4056

Expected behavior You Expect the MatMenu to refence the Button you clicked on, not the Button below that.

Screenshots (https://user-images.githubusercontent.com/92104129/157886057-ca5e8b7b-5152-45eb-abc2-c71247ff200e.mp4)