You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While migrating from v4 to v5, we've found that our content function is not working. We use BS with jQuery.
The v5.3 documentation includes this explanation for popover content option:
"The popover’s text content. If a function is given, it will be called with its this reference set to the element that the popover is attached to."
However, relying on "this" reference doesn't work as it worked earlier. Instead, the function now receives the element in question as function parameter.
I think that the documentation needs an update, possibly the migration guide too.
The root cause in both tickets is the change of the implementation - I just thought that the change was intentional and therefore I didn't treat the implementation change as a bug, but as a change that needs an updated documentation.
If the solution was to restore the original behaviour, then there's no need to update documentation and this ticket is invalid.
Prerequisites
Describe the issue
While migrating from v4 to v5, we've found that our content function is not working. We use BS with jQuery.
The v5.3 documentation includes this explanation for popover content option:
"The popover’s text content. If a function is given, it will be called with its this reference set to the element that the popover is attached to."
However, relying on "this" reference doesn't work as it worked earlier. Instead, the function now receives the element in question as function parameter.
I think that the documentation needs an update, possibly the migration guide too.
Reduced test cases
https://codepen.io/stuntsman/pen/GRaQaPg?editors=1111
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Opera
What version of Bootstrap are you using?
v5.3
The text was updated successfully, but these errors were encountered: