Skip to content
Discussion options

You must be logged in to vote
  • getInstance() returns null if the dialog was never initialized.
  • The Bootstrap method is show(), not showModal()
const welcomeDialog = bootstrap.Dialog.getOrCreateInstance('#welcomeDialog');
welcomeDialog.show();

https://getbootstrap.com/docs/6.0/components/dialog/#javascript-behavior

$('#welcomeDialog').show() is jQuery’s own display toggle and has nothing to do with Bootstrap. It didn’t really open a v5 Modal properly either (that was $('#welcomeModal').modal('show')).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jweaver0312
Comment options

@patkon
Comment options

Answer selected by jweaver0312
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants