bootstrap 3
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
bootstrap4
$.fn.modal.Constructor.prototype._enforceFocus = function() {};