Textbox not editable in pavlovia

I’ve just had this issue myself and discovered the fix, which is to put textboxName.refresh() at the begining of the routine.