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

Bootstrap POPOVER not updating content but run function placed as content #35677

Closed
3 tasks done
blaskognia opened this issue Jan 10, 2022 · 5 comments
Closed
3 tasks done

Comments

@blaskognia
Copy link

Prerequisites

Describe the issue

In options of popover you can setup CONTENT as plaintext / html or you can use function.

This function is run every time when element is clicked but content never update.

For example i have something like this

var testnumber = 0;

And as CONTENT (in options of popover) i have something like this:

function () { testnumber++; console.log(testnumber); return testnumber; }

And when element is clicked JS console said that testnumber every time is increase by one BUT content of popover still have 1.

Reduced test cases

I don't have fix for that

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

5

@ffoodd
Copy link
Member

ffoodd commented Jan 11, 2022

Please provide a reduced test case of the bug on CodePen so that we can figure out what's happenning.

@ffoodd
Copy link
Member

ffoodd commented Jan 11, 2022

And isn't this issue a duplicate of #35029?

@blaskognia
Copy link
Author

@ffoodd sorry, you are right #35029 is the same topic and have example of issue.

@blaskognia
Copy link
Author

@ffoodd this is very important because by that issue we cant create huuuuuge functionality like dynamic menus, elements that change by user actions etc.

It's like some delete click event from js. In my opinion this is critical bug.

@ffoodd
Copy link
Member

ffoodd commented Jan 11, 2022

I'm more concerned by the fact it used to work and doesn't anymore. I'm closing this one as duplicate and encourage you to follow up #35029.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants