(Autocomplete field) Add warning class on correct parent

(cherry picked from commit 172b7f3)