I'm creating my modal with the escape key and backdrop disabled by default
$(modal).modal({
backdrop: "static",
keyboard: false
});
Then some time later I wanna enable them
$(modal).modal({
backdrop: true,
keyboard: true
});
But when I click on the backdrop or press escape nothing happens. I could recreate the entire modal but that looks broken, clumsy and hacky. How do I do this properly?