autocomplete : Issues with autocomplete Expand button

this commit aims to fix a problem inside autocomplete widget with the expand button