I am trying to use a modal as a popup help window. I set backdrop to \'nothing\'. When the modal is opened (without backdrop) input fields in \'original\' page cannot be foc
Following worked for me:
$('#myModal').on("show.bs.modal", (ev) => { $('#myModal').find(".modal-content").on("mousedown", (e) => { if ($(e.target).is("input")) { //Fix for bootstrap modal being stealing focus from inputs like textbox e.stopImmediatePropagation(); } }); });