-
-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Modal overlay not showing after upgrade from 1.4.3 to 1.5.0 #5910
Comments
This is the CSS referenced in the code snippet: .reset-priority-button { |
Can you try clearing the cache? In 1.5, we introduced some CSS animations on modals that could affect default bootstrap styling. PS. We usually add a query version at the end of JS and CSS files so that the browser is always using the latest files, eg. <link href="_content/Blazorise/blazorise.css?v=1.7.1.0" rel="stylesheet" />
<link href="_content/Blazorise.Bootstrap5/blazorise.bootstrap5.css?v=1.7.1.0" rel="stylesheet" /> |
I updated to 1.7.1 and tried clearing the browser cache and adding the references but the behavior is unchanged. I still only get the dark translucent backdrop of the dialog, but no dialog. Hitting ESC closes the backdrop as expected. I tried it with Edge, Firefox, and Chrome. I thought maybe it was an issue using iisexpress in my Visual Studio session, so I published the project to our test server and behavior was the same.
|
I found the issue. I browsed all available nuget packages and saw "Blazorise.Bootstrap5", which I did not have installed. I installed it and now the dialog works as expected. Thanks for your help. |
Do I need both "Blazorise.Bootstrap" and "Blazorise.Bootstrap5" installed, or can I uninstall "Blazorise.Bootstrap"? |
You only need one. Blazorise.Bootstrap5. |
OK thanks. There is one thing I noticed on the dialog now. I lost the 'X' in the upper-right corner. It is now just a very small rectangle. |
Looks like putting an 'X' in the CloseButton tag fixes it. |
I believe you used BS4 before, and now that you have moved to BS5, it will show some differences in the UI. SelectList uses native Select component behind the scenes. And based on the CSS provider, it will pick up those styling. I don't think there is an easy |
PS. Have you finished the integration for BS5? Including the bootstrap CSS files? |
Yes I did finish the BS5 integration and the dialogs are working now. I did have to put an explicit 'X' in the CloseButton tag to get that to show up, but everything else in the app is working well, except for this SelectList issue. I think in BS4 I was using styling to hide the down-arrow caret symbol and only show the selected item text. |
FYI, I did find the styling to "push" the caret symbol off the control to hide it. All good now. Thanks. |
Blazorise Version
1.5.0
What Blazorise provider are you running on?
None
Link to minimal reproduction or a simple code snippet
Steps to reproduce & bug description
Try to display the modal defined by the code above
What is expected?
Model dialog displays
What is actually happening?
translucent dark overlay appears but dialog does not appear anywhere on the screen.
What browsers do you see the problem on?
Firefox, Microsoft Edge
Any additional comments?
Same behavior on Edge and Firefox.
The text was updated successfully, but these errors were encountered: