Describe the bug
When opening a Modal or ImageViewer to view a larger image. When the browser rolls back to the previous page, these layers do not close.
To Reproduce

How can this problem be solved
请问如果想在返回时关闭这个弹层应该怎么做呢?英语不好请见谅
Exceptions (if any)
Further technical details
- BootstrapBlazor version
- Include the output of
dotnet --info
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version