From 069fc990e24afbff2c64ad8d4057309ee8351f70 Mon Sep 17 00:00:00 2001 From: Jeff Sagal Date: Fri, 11 Mar 2016 17:26:50 -0800 Subject: [PATCH] onEscape blur() not close --- karma.conf.js | 4 ++-- package.json | 1 + src/components/Select.vue | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index afeaee6..fb31411 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -14,7 +14,7 @@ module.exports = function (config) { plugin: [require('proxyquireify').plugin] }, // if you want to continuously re-run tests on file-save, - // replace the following line with `autoWatch: true` - singleRun: true + // use `autoWatch: true`, otherwise use `singleRun: true` + autoWatch: true }) } diff --git a/package.json b/package.json index 92679ed..6b40586 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "karma-jasmine": "^0.3.6", "karma-phantomjs-launcher": "^1.0.0", "karma-spec-reporter": "0.0.23", + "node-sass": "^3.4.2", "phantomjs-prebuilt": "^2.1.3", "proxyquireify": "^3.0.1", "uglify-js": "^2.5.0", diff --git a/src/components/Select.vue b/src/components/Select.vue index b9f987a..cc36728 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -281,7 +281,7 @@ onEscape() { if( ! this.search.length ) { - this.open = false + this.$els.search.blur() } else { this.$set('search', '') }