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

'this' ref not set in function passed as title option in tooltip config #38846

Closed
3 tasks done
josephclawrence opened this issue Jun 28, 2023 · 2 comments
Closed
3 tasks done

Comments

@josephclawrence
Copy link

Prerequisites

Describe the issue

In the docs, it says 'If a function is given, it will be called with its this reference set to the element that the popover is attached to.' But this no longer seems to be true in 5.3.

Now, I needed to pass an argument to the function, and that argument is a reference to the element that the popover/tooltip is attached to.

I looked through the internal functions '_resolvePossibleFunction' and 'execute' and this is how it appears to be structured now.

So the docs should be updated to reflect this.

Reduced test cases

Uneccessary

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

macOS

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

Chrome

What version of Bootstrap are you using?

5.3

@nwalters512
Copy link
Contributor

I believe this is a duplicate of #38720. I opened #38725 to fix this.

@julien-deramond
Copy link
Member

Closing it as duplicate. @josephclawrence you can follow #38720 to know when and how it's going to be fixed.

@julien-deramond julien-deramond closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
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

3 participants