Skip to content

Commit d3271e0

Browse files
committed
Update DropDownList.vue
1 parent 7621e57 commit d3271e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Vue/src/components/DropDownList.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { onMounted, onUnmounted, ref, watch } from 'vue';
2+
import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
33
import type { DataSource } from 'devextreme-vue/common/data';
44
import DxDropDownBox from 'devextreme-vue/drop-down-box';
55
import type { DxDropDownBoxTypes } from 'devextreme-vue/drop-down-box';
@@ -29,7 +29,7 @@ const props = defineProps<{
2929
searchExprValue: string | string[];
3030
}>();
3131
32-
const searchTimeoutValue = props.searchTimeout ?? 1000;
32+
const searchTimeoutValue = computed(() => props.searchTimeout ?? 1000);
3333
3434
const treeListRef = ref<InstanceType<typeof DxTreeList> | null>(null);
3535
const dropDownBoxRef = ref<InstanceType<typeof DxDropDownBox> | null>(null);
@@ -88,7 +88,7 @@ function onInput(e: DxDropDownBoxTypes.InputEvent): void {
8888
if (text) {
8989
searchTimerId = setTimeout(() => {
9090
applySearchFilter(text, props.searchExprValue, props.dataSource);
91-
}, searchTimeoutValue);
91+
}, searchTimeoutValue.value);
9292
} else {
9393
props.dataSource.filter(null);
9494
}

0 commit comments

Comments
 (0)