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.data.title.charAt is not a function #48

Open
yogendra068 opened this issue May 10, 2022 · 2 comments
Open

this.data.title.charAt is not a function #48

yogendra068 opened this issue May 10, 2022 · 2 comments

Comments

@yogendra068
Copy link

yogendra068 commented May 10, 2022

this.data.title.charAt is not a function

StackTrace

at n._detectTitle (Scripts/lib/tooltip/protip/protip.min.js : 1/20211) Not analyzed  
 
at n._prepareInternals (Scripts/lib/tooltip/protip/protip.min.js : 1/18587) Not analyzed  
 
at n._Construct (Scripts/lib/tooltip/protip/protip.min.js : 1/15560) Not analyzed  
 
at new n (Scripts/lib/tooltip/protip/protip.min.js : 1/15274) Not analyzed  
 
at s.createItemInstance (Scripts/lib/tooltip/protip/protip.min.js : 1/3488) Not analyzed  
 
at s.getItemInstance (Scripts/lib/tooltip/protip/protip.min.js : 1/3843) Not analyzed  
 
at s._onAction (/Scripts/lib/tooltip/protip/protip.min.js : 1/4461) Not analyzed  
 
at HTMLParagraphElement.f (/Scripts/jquery-2.2.4.min.js : 2/3698) Not analyzed  
 
at HTMLBodyElement.dispatch (/Scripts/jquery-2.2.4.min.js : 3/7537) Not analyzed  
 
at HTMLBodyElement.r.handle (Scripts/jquery-2.2.4.min.js : 3/5620)
@wintercounter
Copy link
Owner

Probably the passed content is not a string.

@Beuf
Copy link

Beuf commented Jan 8, 2024

You are right but I think you are wrong at the same time 😉
I have this problem with data-pt-title="4" (any number I guess)

I added this to the start of _detectTitle function (protip.min.js line 532):
this.data.title = this.data.title.toString();

Not the right place and not the right solution I guess but it works for me for now.

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

No branches or pull requests

3 participants