twbs / bootstrap-sass

Official Sass port of Bootstrap 2 and 3.
http://getbootstrap.com/css/#sass
MIT License
12.59k stars 3.53k forks source link

Well, it's only shown if it was already open: if (this._isShown()) { #1236

Closed monsterRocky closed 1 year ago

monsterRocky commented 1 year ago
    Well, it's only shown if it was already open: if (this._isShown()) { 

As I mentioned in the issue, in my use case it's because I want to asynchronously load in the content when the popover is opened, first displaying a loading animation and then the content. Okay, so I replaced setContent with this in my code now:

instance.tip.querySelector('.popover-body').innerHTML = 'New Content' instance.update() That could be a fix in bootstrap as well, but I don't have the time right now to delve deep enough into the codebase to do a proper PR

Originally posted by @monsterRocky in https://github.com/twbs/bootstrap/issues/37206#issuecomment-1264692484