you will need to do detailed client side debugging.
the state change and component re-render triggered by the onclick hander probably overwrites the dom changes made by the bootstrap javascript. also you are triggering Blazor navigation to the current page which could also be causing the issue.
in general you should not use bootstrap javascript components with Blazor. The code can easily be rewritten to be Blazor only and only use bootstrap css.
note: you should avoid including the bootstrap js file with Blazor or other virtual dom frameworks.