Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover dynamic content issue on bootstrap 5.1 #35029

Closed
Syone opened this issue Sep 21, 2021 · 5 comments · Fixed by #35679
Closed

Popover dynamic content issue on bootstrap 5.1 #35029

Syone opened this issue Sep 21, 2021 · 5 comments · Fixed by #35679

Comments

@Syone
Copy link

Syone commented Sep 21, 2021

There is a regression between v5.0.x => https://codepen.io/syone7/pen/xxrjoWP

And v5.1.x => https://codepen.io/syone7/pen/eYRraxY

On the example 2 and 3, the popover content is supposed to be updated everytime you close and reopen the popover

@XhmikosR
Copy link
Member

XhmikosR commented Dec 2, 2021

@GeoSot have you checked this issue?

@blaskognia
Copy link

Still not working in version 5.1.3 :( this very bad

@manjindersarkaria
Copy link

I am also facing same issue. The content does return the html, but never gets added in the popover body. Popover-body remain empty. I am using the latest 5.1.3

@blaskognia
Copy link

blaskognia commented Mar 10, 2022 via email

@PavloParafiloCricut
Copy link

Hope this will be fixed/improved

Tried different options even with touching _popper internals, but only setTimeout(100+) works (because of that "deffers" inside popper.js?).

As a workaround can try this

const popover = bootstrap.Popover.getInstance(element);
popover.tip.querySelectorAll(".popover-body")[0].innerHTML = contentElement.innerHTML;
popover.update();

@mdo mdo added this to To do in v5.2.0-stable via automation May 13, 2022
@mdo mdo removed this from To do in v5.2.0 May 13, 2022
v5.2.0-stable automation moved this from To do to Done Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v5.2.0-stable
  
Done
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants