Skip to content

Commit

Permalink
#434 - Better way to test if modal is opened.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Nov 25, 2022
1 parent 1fb5d75 commit d9a4efe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Money.Blazor.Host/wwwroot/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ window.Bootstrap = {
$(container).modal('hide');
},
IsOpen: function (container) {
const data = $(container).data('bs.modal');
return !data || !data._isShown ? false : true;
return $(container).hasClass("show");
},
Dispose: function (container) {
$(container).modal('dispose');
Expand Down

0 comments on commit d9a4efe

Please sign in to comment.