Protip icon indicating copy to clipboard operation
Protip copied to clipboard

this.data.title.charAt is not a function

Open yogendra068 opened this issue 3 years ago • 2 comments

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)

yogendra068 avatar May 10 '22 09:05 yogendra068

Probably the passed content is not a string.

wintercounter avatar May 10 '22 11:05 wintercounter

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.

Beuf avatar Jan 08 '24 11:01 Beuf