Firefox missing cursorJanuary 14th, 2008
I recently came across an annoying bug that took me a while to sort out.
Say I’ve got a DIV containing a TEXTAREA. If the TEXTAREA has focus, then I hide that DIV, my cursor will not be visible in any other form fields. I can put focus on other fields, and type in them, but the cursor is missing, which is disorienting as a user.
I found that to solve the problem, I just need to remove focus from the TEXTAREA before hiding the DIV. I can either move the focus elsewhere, or simply do myTextarea.blur() .
Simple solution to something that was driving me nuts. Maybe this will help someone out there.