最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Bootstrap 5 input-fields shown ontop of modal window - Stack Overflow

programmeradmin1浏览0评论

I have a problem with Bootstrap 5 modal window.

I am using:

I am calling the modal show using this button

<button id="ticket-agree-button" class="btn btn-outline-success mt-1" onclick="showAgreement();">Købs aftale</button>

And the Javascript

function showAgreement(){
    // Get the modal
    var modal = document.getElementById("ticket-agreement");
    modal.style.display = "block";
}

function closeAgreement(){
    // Get the modal
    var modal = document.getElementById("ticket-agreement");
    modal.style.display = "none";
}

var iframeLoadCount = 0;
function reloadonce(iframe) {
  iframeLoadCount ++;
  if (iframeLoadCount <= 1) {
    iframe.contentWindow.location.reload();
    console.log("reload()");
  }
}

It is working fine, but as soon as the required validation has taken place. The form-fields is shown in front of the modal window. As you can see on the attached screen shot. Before Bootstrap validation there is no problem. Howto solve that?

How it looks in my firefox browser

发布评论

评论列表(0)

  1. 暂无评论