Text Editor Visibility/Focus

Hi! I've been running to an issue in Perspective:

I've scripted a button so that when pressed, the focus of a separate text field is enabled using .focus().

However, I want this text field to NOT be visible. When I change the text field to non-visible, the focus is no longer executed when the button is pressed. Has anyone ran into this visibility issue in Perspective, and is there a workaround?

Elements that aren't visible, or have display:none set, are not focusable. Setting the element's style.opacity to 0 to hide it and 1 to show it, should work though.

1 Like