create modal and hide and show all script listener lost.
- use js create modal and bind listener on content .
- hide modal.
- trigger show modal again. script bind lost.
because modal dom removed from dom tree. This not happened in official bootstrap-modal.
I add modal.appendTo($(document)); to removeContainer to solve problem
removeContainer: function (modal) {
modal.appendTo($(document));
modal.$container.remove();
modal.$container = null;
},
I am having the same problem! script bind lost. Where did you add that function ? Thanks!
removeContainer is a function from bootstrap-modalmanager.js.
I tried adding it but I get the message: "Uncaught TypeError: modal.appendTo is not a function"
I am destroying the modal and recreating it, not the best.. but for now it works. I don't know if this maybe the same problem why I also get dropbox items cropped out of modal ...
modal.$element.appendTo($('body'));
my mistake.