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

[BUG] Button text gets reset right after being set #605

Open
bbonf opened this issue Nov 29, 2024 · 0 comments
Open

[BUG] Button text gets reset right after being set #605

bbonf opened this issue Nov 29, 2024 · 0 comments

Comments

@bbonf
Copy link

bbonf commented Nov 29, 2024

I'm setting up a loop, containing a routine with a button whose text is being set from a variable.
The button text is set to "set every repeat". This works in the Python version but the JS version produces the following code:

// update component parameters for each repeat
button.setText(foo);
// reset button to account for continued clicks & clear times on/off
button.reset()

The result is a button that's always empty.
I can work around this by setting the button text to "set every frame", but that seems to also affect the way response times are being recorded.

Attached a minimal example:
Archive.zip

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