I recently upgraded the target framework to .NET 7 and the UI for Blazor package to 3.7. With this configuration in my WASM app, it looks like the OnClick event for the child buttons is sometimes not fired. It happens occasionally and not for all child buttons.
===
ADMIN EDIT
===
Last working version: UI for Blazor 3.6.1. and .NET 6. You may revert to that configuration until the fix is live.
This will make it easier to have a dynamic list of options whose order can be preserved.
Otherwise, you need to use conditional markup (which puts newly made visible items at the end), or a @foreach over a descriptor model.