# Perspective text box focus issue / cursor not returning

**URL:** <https://forum.inductiveautomation.com/t/perspective-text-box-focus-issue-cursor-not-returning/92182>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 20, 2024, 8:16pm UTC](https://forum.inductiveautomation.com/t/perspective-text-box-focus-issue-cursor-not-returning/92182 "2024-06-20T20:16:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joehahn](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@joehahn](https://forum.inductiveautomation.com/u/joehahn)\
**Post date:** [June 20, 2024, 8:16pm UTC](https://forum.inductiveautomation.com/t/perspective-text-box-focus-issue-cursor-not-returning/92182/1 "2024-06-20T20:16:03Z")

</div>

I currently have a perspective page that has a text box, once a string is entered the value is saved. The text box is cleared, and focus is put back on the text box by using .focus()  
There is a sleep delay of 0.15 before the focus  
I have the text box background to change color to know when the text box has focus.

This will work correctly for 2 or 3 consecutive entries in a row. Then the text box background will change color to indicate it has focus but the cursor will not show up. There will be delay of about 30-45 seconds between each entry. Any ideas whats going on. ?
