Issue #23345:correctly set tab index during clear