Fix the 'focus gets stuck in hidden text input' bug #12