From 96c2f77a9f883913222088a9cf6652d37b7dbdfb Mon Sep 17 00:00:00 2001 From: MarcosRJJunior Date: Tue, 8 Mar 2016 17:18:01 -0300 Subject: [PATCH] Adding timeout at fsItemSelected dispatch --- fire-select.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fire-select.js b/fire-select.js index d9bca72..c1d5583 100644 --- a/fire-select.js +++ b/fire-select.js @@ -143,7 +143,11 @@ Vue.component('fire-select', { this.singleDeselect(); item.selected = true; - if (! this.isPopulating) this.$dispatch('fsItemSelected', Vue.util.extend({}, item)); + if (! this.isPopulating) { + setTimeout(function() { + this.$dispatch('fsItemSelected', Vue.util.extend({}, item)); + }.bind(this), 400); + } if (this.multiple) { this.skipClose = true;