79390659

Date: 2025-01-27 12:09:41
Score: 2
Natty:
Report link

Answer for Bootstrap 5 without jQuery:

if (bootstrap.Modal.getOrCreateInstance(document.getElementById('myModal'))._isShown) {
  // ...
}

More info on BS5 with JS

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: chris_cm