We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5949a7f commit 2c4fc54Copy full SHA for 2c4fc54
1 file changed
src/BootstrapBlazor/wwwroot/modules/modal.js
@@ -161,8 +161,7 @@ export class Modal extends BlazorComponent {
161
}
162
163
_hide() {
164
- const dialogs = this._element.querySelectorAll('.modal-dialog')
165
- if (dialogs.length === 1) {
+ if (this._element.children.length === 1) {
166
this._modal.hide()
167
} else {
168
this._invoker.invokeMethodAsync(this._invokerCloseMethod)
0 commit comments