Fix only opening the dropdown when empty.

Was working for everything but the first letter typed.