From 78b59c01f76cc657d53c767861b2bc358fe76a5e Mon Sep 17 00:00:00 2001 From: Uyarn Date: Tue, 31 Oct 2023 22:24:02 +0800 Subject: [PATCH] chore: update snapshot --- src/select/select.tsx | 2 +- test/unit/snap/__snapshots__/csr.test.js.snap | 4 +--- test/unit/snap/__snapshots__/ssr.test.js.snap | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/select/select.tsx b/src/select/select.tsx index 1f020b4771..f12e6f1b0e 100644 --- a/src/select/select.tsx +++ b/src/select/select.tsx @@ -257,7 +257,7 @@ export default defineComponent({ handleSearch(`${value}`, { e: context.e as KeyboardEvent }); nextTick(() => { - virtualFilteredOptions.value = selectPanelRef.value.visibleData; + virtualFilteredOptions.value = selectPanelRef.value?.visibleData; }); }; diff --git a/test/unit/snap/__snapshots__/csr.test.js.snap b/test/unit/snap/__snapshots__/csr.test.js.snap index 4e7ecac168..3659806745 100644 --- a/test/unit/snap/__snapshots__/csr.test.js.snap +++ b/test/unit/snap/__snapshots__/csr.test.js.snap @@ -110384,16 +110384,14 @@ exports[`csr snapshot test > csr test ./src/select/_example/virtual-scroll.vue 1 class="t-input__wrap" >
diff --git a/test/unit/snap/__snapshots__/ssr.test.js.snap b/test/unit/snap/__snapshots__/ssr.test.js.snap index f6336d71d7..206af584bc 100644 --- a/test/unit/snap/__snapshots__/ssr.test.js.snap +++ b/test/unit/snap/__snapshots__/ssr.test.js.snap @@ -856,7 +856,7 @@ exports[`ssr snapshot test > ssr test ./src/select/_example/size.vue 1`] = `" ssr test ./src/select/_example/status.vue 1`] = `"
"`; -exports[`ssr snapshot test > ssr test ./src/select/_example/virtual-scroll.vue 1`] = `"
"`; +exports[`ssr snapshot test > ssr test ./src/select/_example/virtual-scroll.vue 1`] = `"
"`; exports[`ssr snapshot test > ssr test ./src/select-input/_example/autocomplete.vue 1`] = `"
"`;