question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v-select dropdown is not visible

See original GitHub issue

Hello,

I am trying to add the v-select to my .vue template like this:

`<template> <div> … <div v-cloak v-show=“showHosts()”> <label class=“form-control-label”> Hosts </label>
<v-select :searchable=true multiple :value.sync=“selected” :options=options></v-select> </div> …

</div> </template>

… data () { return {
selected: null, options: JSON.parse(‘[{“label”: “foo”, “value”: “Foo”},{“label”: “boo”, “value”: “Boo”},{“label”: “loo”, “value”: “Loo”},{“label”: “moo”, “value”: “Moo”},{“label”: “zoo”, “value”: “Zoo”}]’) } }, components: {vSelect},`

However, even if I can type and select the “foo” and “boo” items, the dropdown menu ul tag displays transition=“expand” and the dropdown is not displayed.

myimplementation

vue-select-example

My package.json contains:

“dependencies”: { “vue”: “^2.1.10”, “vuetable-2”: “^1.0.1”, “vue-events”: “vue-2.x”, “vue-select”: “^2.1.0” }, “devDependencies”: { “del”: “^2.2.0”, “gulp”: “^3.9.1”, “gulp-sync”: “^0.1.4”, “webpack-stream”: “^3.2.0”, “gulp-autoprefixer”: “^3.1.0”, “gulp-babel”: “^6.1.2”, “gulp-concat”: “^2.6.0”, “gulp-if”: “^2.0.1”, “gulp-imagemin”: “^3.0.1”, “gulp-sass”: “^2.3.1”, “gulp-uglify”: “^1.5.3”, “yargs”: “^4.7.1”, “gulp-replace”: “^0.5.4”, “babel-core”: “^6.1.2”, “babel-loader”: “^6.1.0”, “babel-plugin-transform-runtime”: “^6.1.2”, “babel-preset-es2015”: “^6.18.0”, “babel-preset-stage-0”: “^6.1.2”, “babel-runtime”: “^5.8.0”, “webpack”: “^1.13.2”, “css-loader”: “^0.23.0”, “style-loader”: “^0.13.0”, “vue-loader”: “^7.3.0”, “vue-html-loader”: “^1.0.0”
}

I also use Bootstrap v4.0.0-alpha.6.

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
hemulincommented, Nov 17, 2017

Using Bootstrap 4.0.0-beta.2, the v-select element looked rather bad. The fix for me was a simple

.v-select {
  display: grid;
}

It is supported in modern browsers (not so much on IE)

1reaction
smateicommented, Mar 23, 2017

Thank you @sagalbot !

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - v-select component is not showing selected option in v ...
It is showing options in dropdown but after selecting it is showing blank in select box. This is the problem- enter image description...
Read more >
Options Prop - Vue Select
When options is an array of objects, the component must generate a label to be shown as the options text. By default, vue-select...
Read more >
vuetify, v-select : problem with drop down listing of ... - Laracasts
Hello, In my Laravel 5.6/vue.js2.5 application I use vuetify,1.0.8 and have some problem with drop down listing of select component On my page...
Read more >
Can't make work my v-select - Get Help - Vue Forum
the problem is that is not show the data in select, i try to show the name ... <v-select :value.sync="comunas.id" :options="comunas.name">.
Read more >
Vuetify Select: How to Create Dropdown Lists with Vuetify
We can describe a dropdown list with the label prop of v-select . We are going to be display a list of colors,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found