Skip to content

set display: none; to input.vs__search makes the dropdown not closable #1665

@handhikadj

Description

@handhikadj
  • Vue Version: Vue 2.7
  • Vue Select Version: 3.20.0

Describe the bug
it's not closable if we click outside the dropdown. I need to hide the input.vs__search because it breaks the dropdown UI on my project

Reproduction Link
https://codesandbox.io/s/brave-cookies-upd1vn

Steps To Reproduce
I notice the v-deep is not working on the sandbox, so you need to:

  1. inspect the codesandbox result tab using devtools
  2. find the input.vs-search and set display: none to element

Screen Shot 2022-07-30 at 8 50 16 PM

3. click the dropdown so that it's opened and click outside the dropdown list. you will notice the dropdown won't close (if you click a dropdown item, the dropdown behaves normally)

Expected behavior
the dropdown behaves normally

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions