psychojs icon indicating copy to clipboard operation
psychojs copied to clipboard

TEXT: Convert contents to string

Open TEParsons opened this issue 3 years ago • 0 comments

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?

TEParsons avatar Jan 31 '22 14:01 TEParsons