Editable textbox ._pixi is undefined

Description of the problem:

I tried to resolve another problem involving editable textboxes in an online experiment on Pavlovia using the fix shown here, which requires calling a method on textbox._pixi. When I do so, I get this error (arith_calc_resp is the name of the textbox):

Unfortunately we encountered the following error:

  • TypeError: arith_calc_resp._pixi is undefined

I logged the text box object to the console and I saw that the _pixi attribute was indeed undefined and also noted that _needPixiUpdate was “true”.

For future users, it’s important that your code component is BELOW your textbox component in the Builder; that way the textbox is created first and exists for the .__pixi command to reference.

1 Like