bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Modal not hiding if I change css

Open rix501 opened this issue 15 years ago • 1 comments

If I change the left css property of a modal this code:

$("#modal").modal('hide')

doesn't work. Even if I use jQuery own hide, it doesn't do anything. If I remove the css property, it hides no problem.

rix501 avatar Oct 04 '11 01:10 rix501

Okay, after some further research the problem wasn't the css property, rather the problem was that bootstrap-modal.js adds the elements to document.body instead of the element I originally had them.

rix501 avatar Oct 04 '11 01:10 rix501