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

Uncaught TypeError: cellValue.replace is not a function at sanitizeCellValue #65

Open
ttataryn opened this issue Sep 24, 2018 · 2 comments

Comments

@ttataryn
Copy link

Not sure this is something I can change... thoughts on why this is occurring?

editInline.js:240 Uncaught TypeError: cellValue.replace is not a function
    at sanitizeCellValue (editInline.js:240)
    at HTMLTableCellElement.<anonymous> (editInline.js:108)
    at HTMLTableSectionElement.dispatch (datatables.min.js:14)
    at HTMLTableSectionElement.y.handle (datatables.min.js:14)
@ifo20
Copy link

ifo20 commented Jun 24, 2020

@ttataryn this happened to me when I had a value representing a fraction. Changing

cellValue = cellValue.replace(/'/g, "&#39;");

to

cellValue = cellValue.toString().replace(/'/g, "&#39;");

worked for me

@babylonlin
Copy link

@ttataryn this happened to me when I had a value representing a fraction. Changing

cellValue = cellValue.replace(/'/g, "&#39;");

to

cellValue = cellValue.toString().replace(/'/g, "&#39;");

worked for me

Yes. It works for me as well. I choose another path: String(cellValue).replace..

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