Fix to allow dropdown on input field with more than one class

(the first one needs to be the same as the selector)