Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEXT: Convert contents to string #476

Open
TEParsons opened this issue Jan 31, 2022 · 0 comments
Open

TEXT: Convert contents to string #476

TEParsons opened this issue Jan 31, 2022 · 0 comments

Comments

@TEParsons
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant