From ab153b5c627c865c06bf32bcfdf837a0c20264f1 Mon Sep 17 00:00:00 2001 From: Razvan Stoenescu Date: Sun, 5 Feb 2017 00:31:36 +0200 Subject: [PATCH] refactor: Avoid breaking change for Autocomplete (debounce prop renamed back to delay) --- dev/components/form/autocomplete.vue | 8 ++++---- src/vue-components/autocomplete/Autocomplete.vue | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dev/components/form/autocomplete.vue b/dev/components/form/autocomplete.vue index e5d13fddac4..f030de3699a 100644 --- a/dev/components/form/autocomplete.vue +++ b/dev/components/form/autocomplete.vue @@ -6,14 +6,14 @@ On desktop, Escape key closes the suggestions popover and you can navigate with keyboard arrow keys. Selection is made with either mouse/finger tap or by Enter key.

- +

Maximum of 2 results at a time

- + @@ -32,14 +32,14 @@

Static List

- +

Delimiter between results

- + diff --git a/src/vue-components/autocomplete/Autocomplete.vue b/src/vue-components/autocomplete/Autocomplete.vue index 9733b0a44c1..76dbf37c402 100644 --- a/src/vue-components/autocomplete/Autocomplete.vue +++ b/src/vue-components/autocomplete/Autocomplete.vue @@ -42,7 +42,7 @@ export default { type: Number, default: 6 }, - debounce: { + delay: { type: Number, default: 500 }, @@ -160,7 +160,7 @@ export default { }, __delayTrigger () { clearTimeout(this.timer) - this.timer = setTimeout(this.trigger, this.staticData ? 0 : this.debounce) + this.timer = setTimeout(this.trigger, this.staticData ? 0 : this.delay) }, __handleKeypress (e) { switch (e.keyCode || e.which) {