2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

merge master into theme-addition

This commit is contained in:
Owen Conti
2016-03-14 06:11:30 -06:00
4 changed files with 10 additions and 22213 deletions
-22208
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = function (config) {
plugin: [require('proxyquireify').plugin] plugin: [require('proxyquireify').plugin]
}, },
// if you want to continuously re-run tests on file-save, // if you want to continuously re-run tests on file-save,
// replace the following line with `autoWatch: true` // use `autoWatch: true`, otherwise use `singleRun: true`
singleRun: true singleRun: true
}) })
} }
+1
View File
@@ -44,6 +44,7 @@
"karma-jasmine": "^0.3.6", "karma-jasmine": "^0.3.6",
"karma-phantomjs-launcher": "^1.0.0", "karma-phantomjs-launcher": "^1.0.0",
"karma-spec-reporter": "0.0.23", "karma-spec-reporter": "0.0.23",
"node-sass": "^3.4.2",
"phantomjs-prebuilt": "^2.1.3", "phantomjs-prebuilt": "^2.1.3",
"proxyquireify": "^3.0.1", "proxyquireify": "^3.0.1",
"uglify-js": "^2.5.0", "uglify-js": "^2.5.0",
+8 -4
View File
@@ -127,6 +127,7 @@
@keydown.down.prevent="typeAheadDown" @keydown.down.prevent="typeAheadDown"
@keydown.enter.prevent="typeAheadSelect" @keydown.enter.prevent="typeAheadSelect"
@blur="open = false" @blur="open = false"
@focus="open = true"
type="search" type="search"
class="form-control" class="form-control"
:placeholder="searchPlaceholder" :placeholder="searchPlaceholder"
@@ -199,6 +200,9 @@
}, },
multiple( val ) { multiple( val ) {
this.$set('value', val ? [] : null) this.$set('value', val ? [] : null)
},
filteredOptions() {
this.typeAheadPointer = 0;
} }
}, },
@@ -217,9 +221,9 @@
this.value = option this.value = option
} }
} else { } else {
if (this.multiple) { // if (this.multiple) {
this.value.$remove(option) // this.value.$remove(option)
} // }
} }
if (!this.multiple) { if (!this.multiple) {
@@ -286,7 +290,7 @@
onEscape() { onEscape() {
if( ! this.search.length ) { if( ! this.search.length ) {
this.open = false this.$els.search.blur()
} else { } else {
this.$set('search', '') this.$set('search', '')
} }