From d3a4869a969463b28e1efabe828b99f4638136ea Mon Sep 17 00:00:00 2001 From: Azri Kahar <42867097+azrikahar@users.noreply.github.com> Date: Fri, 8 Oct 2021 22:46:47 +0800 Subject: [PATCH] Debounce search & filter inputs (#8631) * debounce search input * debounce filter input * rename to emitValueDebounced --- .../_system/system-filter/input-component.vue | 16 ++++++++++--- .../components/search-input/search-input.vue | 24 ++++++++++++++++--- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/app/src/interfaces/_system/system-filter/input-component.vue b/app/src/interfaces/_system/system-filter/input-component.vue index 0621c43d61..39d2d1e5f1 100644 --- a/app/src/interfaces/_system/system-filter/input-component.vue +++ b/app/src/interfaces/_system/system-filter/input-component.vue @@ -14,7 +14,7 @@ :value="value" :style="{ width }" placeholder="--" - @input="emitValue($event.target.value)" + @input="emitValueDebounced($event.target.value)" />
- +