Clicking on the documents before autofill dismisses the popup suggestion
Changed code and made it simple for previous commit.