Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unwanted space in empty results div #213

Open
anVeNiQ opened this issue Feb 23, 2021 · 2 comments
Open

Unwanted space in empty results div #213

anVeNiQ opened this issue Feb 23, 2021 · 2 comments

Comments

@anVeNiQ
Copy link

anVeNiQ commented Feb 23, 2021

  • vue-autosuggest version: 2.2.0
  • node version: 10.15.1
  • npm (or yarn) version: 6.14.1

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
Copy link
Owner

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

image

@anVeNiQ
Copy link
Author

anVeNiQ commented Mar 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants