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

Placeholder missing when not searchable #222

Closed
bformet opened this issue May 23, 2017 · 8 comments
Closed

Placeholder missing when not searchable #222

bformet opened this issue May 23, 2017 · 8 comments

Comments

@bformet
Copy link

bformet commented May 23, 2017

I just found out that the placeholder is not displayed when v-select has :searchable="false"

@ghost
Copy link

ghost commented Jun 22, 2017

I had the same problem.
Its because the input field with the placeholder is set to max-width: 1px when searchable is false.

Heres a simple temporary fix:

.v-select.unsearchable input[type="search"] {
    max-width: none;
}
.v-select.unsearchable > .dropdown-toggle > .selected-tag + input[type="search"] {
    max-width: 1px;
}

@wa05
Copy link

wa05 commented Jul 25, 2017

Hi @Ama-Gi what version are you using? not working in "^2.2.0"

@edhofmtx
Copy link

edhofmtx commented Aug 7, 2017

Hi @Ama-Gi , already tried your solution but still can't see placeholder.
Any idea why?
I'm using v2.2.0

@sagalbot
Copy link
Owner

@andremiguelaa
Copy link

andremiguelaa commented Mar 11, 2018

@wa05 include opacity: 1

.v-select.unsearchable input[type="search"] { max-width: none; opacity: 1; } .v-select.unsearchable > .dropdown-toggle > .selected-tag + input[type="search"] { max-width: 1px; }

@cloutzakis
Copy link

@andremiguelaa I would add opacity:1 !important since in my case it was overwritten.

.v-select.unsearchable input[type="search"] { max-width: none; opacity: 1 !important; } .v-select.unsearchable > .dropdown-toggle > .selected-tag + input[type="search"] { max-width: 1px; }

Apart from that it works like a charm!

@agm1984
Copy link

agm1984 commented Mar 30, 2019

In the newest version of the library, there is no max-width setting on .v-select.unsearchable input[type="search"], so I changed opacity: 0; to opacity: 1; and it fixed this problem.

sagalbot pushed a commit that referenced this issue Apr 1, 2019
sagalbot added a commit that referenced this issue Apr 1, 2019
@sagalbot
Copy link
Owner

sagalbot commented Apr 1, 2019

Fixed in v2.6.4.

sagalbot pushed a commit that referenced this issue Apr 13, 2019
@sagalbot sagalbot mentioned this issue Apr 13, 2019
sagalbot added a commit that referenced this issue Apr 13, 2019
sagalbot pushed a commit that referenced this issue Apr 14, 2019
* origin/release/v3.0: (67 commits)
  ensure #222 stays closed (#828)
  add guide for reduce and taggable (#827)
  Remove foo bar (#826)
  WIP: v3 – remove onSearch callback prop (#811)
  doc content updates
  overhaul selecting docs, updated navigation and URL structure
  bump vue-server-renderer (#807)
  WIP: V3 - Remove index prop, add reduce prop (#800)
  V3/update list items slot (#799)
  update vuepress (#797)
  Update sandbox
  Add patch from #787
  update package deps, remove extra dev options
  V3 - Remove `mutable` class properties plus other misc changes (#781)
  refactor deselect method (#768)
  Sass & Class Renames (#759)
  fix coveralls coverage reporter (#766)
  remove: - express - gitbook - json-loader - markdown-loader - normalize.css - prismjs - vue-resource
  use test-utils beta-20
  fix failing test
  ...

# Conflicts:
#	docs/gitbook/README.md
#	docs/homepage/home.html
#	src/components/Select.vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants