psychojs
psychojs copied to clipboard
TEXT: Convert contents to string
If I make a TextBox in PsychoPy whose contents is a number, when I run online it throws this error:
TypeError: Cannot convert a Symbol value to a string
Inspecting in the console, the error is here:
set text(text)
{
this._dom_input.value = text;
if (this._substituted)
{
this._updateSurrogate();
}
}
Should this be this._dom_input.value = String(text);
instead?