Skip to content

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

@bbonf

Description

@bbonf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions