Error: content.slice is not a function
Sherhang opened this issue · 6 comments
When using cheetah-grid in superset1.0.1,somtimes this error occurs:
js Chart.jsx?c775:137 TypeError: content.slice is not a function at breakWidth (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:18728) at Inline.breakAll (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:18832) at truncateInlines (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:1857) at _inlineRect (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:1888) at eval (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:2485) at GridCanvasHelper.drawWithClip (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:2394) at GridCanvasHelper.text (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:2472) at eval (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:12105) at Object.loadIcons (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:13178) at Column.drawInternal (webpack-internal:///./node_modules/cheetah-grid/dist/cheetahGrid.es5.js:12104)
Thank you for this issue. Would you please provide a repository to reproduce the issue?
The issue occurs in the following demo:
`<script src="https://unpkg.com/cheetah-grid@0.22"></script>
It seems that this property leads to the issue
"style": { "textAlign": "center", "font": "12px sans-serif", // "textOverflow": "ellipsis" // this line leads to the issue }, "message": null
Your source code doesn't work. Please provide the repository. Otherwise I will close this issue.
I can't check the issue so I will close this issue.