"modal-open" class is applied to the body.
You are required to modify the javascript code responsible for adding the "modal-open" class. It may seem like an unusual request, but it needs to be done :)
To control the modal click event and move the class from the body to another element:
i. Initially, the Modal is placed in the Body and then transferred to another element.
$('#signUpModal').on('shown.bs.modal', function (e) {
$(body).removeClass('modal-open');
$('#otherElement').addClass('modal-open');
});
ii. Additionally, intercept the closing of the modal and execute a second removal:
$('#signUpModal').on('hidden.bs.modal', function (e) {
$('#otherElement').removeClass('modal-open');
});
Follow these steps and everything should work smoothly :)