Fixed hanging element when leaving autocomplete