I have set up my modal to disable the escape key and backdrop by default.
$(modal).modal({
backdrop: "static",
keyboard: false
});
However, at a later time, I want to enable them again.
$(modal).modal({
backdrop: true,
keyboard: true
});
The issue is that when I click on the backdrop or press escape, nothing happens. Recreating the entire modal seems like a broken, clumsy, and hacky solution. What is the proper way to achieve this?