-
Notifications
You must be signed in to change notification settings - Fork 754
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
Uncaught TypeError: Cannot read property 'toString' of undefined at Object.sortNatural #1566
Comments
Hi @own3mall! What parser is being set for that column? Would you please share the tablesorter initialization code being used. |
I didn't set one. Just using the default.
|
I still can't duplicate the issue. By default, the "image" parser is set and extracts the alt attribute from the image. If there is no alt attribute, then it falls back to the text within the cell. Is there any other script that might be interfering? Also, you don't need to use No matter the cause, I'll modify that bit of code in the core to ensure that the parameters are not undefined. |
I'm not sure why it was happening either. I'll try to put together a JSFiddle. Pretty sure nothing else was interfering with the script. It was just crashing for some reason. Thanks for adding a null check though. |
Figured it out. The HTML was bad. My closing Now that I've fixed that, I no longer have the issue. Sorry about that... minor syntax errors can drive a person crazy. However, I still think it's a good idea to have those checks you put in even though it was totally my fault. Thanks for working on this. 👍 |
I'm receiving the below error on the latest version of tablesorter (along with my older version of v2.29.5):
It seems to not like the column data which consists of the following:
Attached is a screenshot showing the problem:
Any idea why this might be happening?
The text was updated successfully, but these errors were encountered: