google / google-visualization-issues

288 stars 35 forks source link

getSelection produces an error when clicking a row in a table. Used to work, now it doesn't. #2902

Open mbond87 opened 3 years ago

mbond87 commented 3 years ago

We've just started encountered this error in several of our reports in the last few days. This report has worked without an issue for 3 years and now it does not.

`Uncaught TypeError: b.split is not a function gvjs_cn https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:417 gvjs_cn https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:417 getSelection https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:417 getSelection https://www.gstatic.com/charts/50/js/jsapi_compiled_ui_module.js:1076 drawVisualization https://... gvjs_qi https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:151 gvjs_ni https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:150 dispatchEvent https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:148 gvjs_G https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:150 xZ https://www.gstatic.com/charts/50/js/jsapi_compiled_ui_module.js:1079 gvjs__aa https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:146 a https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:143 gvjs_gi https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:142 gvjs_E https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:141 gvjs_Vq https://www.gstatic.com/charts/50/js/jsapi_compiled_graphics_module.js:21 o https://www.gstatic.com/charts/50/js/jsapi_compiled_graphics_module.js:21 gvjs_8L https://www.gstatic.com/charts/50/js/jsapi_compiled_ui_module.js:1066 gvjs_zha https://www.gstatic.com/charts/50/js/jsapi_compiled_ui_module.js:1064 Dt https://www.gstatic.com/charts/50/js/jsapi_compiled_ui_module.js:1057 ae https://www.gstatic.com/charts/50/js/jsapi_compiled_ui_module.js:1056 draw https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:282 gvjs_Je https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:152 draw https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:282 drawVisualization https://... promise callback*I.X https://www.gstatic.com/charts/loader.js:136

https://...` The error is coming from this line of code: `row = table.getSelection()[0].row;` and the error references this JavaScript file: [jsapi_compiled_default_module](https://www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js) If I hardcode a valid value for the row, the report works as expected. If I don't hard code the value I get the "Uncaught TypeError: b.split is not a function" error. Any suggestions? Is this a problem with a Google update or something on my side? Like I said, it worked previously for several years. Thanks for your help and suggestions Here's the full set of code up to that point. ` Githubissues.
  • Githubissues is a development platform for aggregating issues.