Web GL Uncaught TypeError: str.charCodeAt is not a function
I am building an online gallery and the UI is js based so I need to interact with that. I am getting a type error for something that I did not write.
Here is the error: Uncaught TypeError: str.charCodeAt is not a function at stringToUTF8Array (aad2640e-4b15-47e0-ac25-53cf27770ad6:8) at stringToUTF8 (aad2640e-4b15-47e0-ac25-53cf27770ad6:8) at Object.focusEventHandlerFunc [as handlerFunc] (aad2640e-4b15-47e0-ac25-53cf27770ad6:8) at jsEventHandler (aad2640e-4b15-47e0-ac25-53cf27770ad6:8)
Happens when I update an unrelated element inside the dom and lose focus (eg. click on the dev tools, or focus on another program and not the browser)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613004810im_/https://answers.unity.com/themes/thub/images/avi.jpg)