darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

Unwanted space in empty results div #213

Open anVeNiQ opened 3 years ago

anVeNiQ commented 3 years ago

Relevant code or config

What you did:

What happened:

If there are no results, there is now a unwanted whitespace returned in the div with classname 'autosuggest__results-container'. Because of this we are unable to use css with (:empty), which we use alot in our projects. We recently updated from 1.7.1-2 to 2.2.0. In that version there was no space returned in that div.

Reproduction sandbox/repository: In your own demo environment you can see this issue as well (https://darrenjennings.github.io/vue-autosuggest/).

Problem description:

Suggested solution: Remove the space :)

darrenjennings commented 3 years ago

@anVeNiQ can you point out in the code or in this screenshot where you are referring to "unwanted whitespace"?

image

anVeNiQ commented 3 years ago

image See the screenshot above, I marked the space with a red circle. You can only see the space when you edit the html of the div with the class 'demo-autosuggest-autosuggest__results' in your devtools.