From 56f43ed02ec584f4dfd17b8cda8c689f52dfed12 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 28 Aug 2023 11:25:17 +0200 Subject: [PATCH] fix(FilePicker): Reset selected files if the current directory is changed Signed-off-by: Ferdinand Thiessen --- lib/components/FilePicker/FilePicker.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/components/FilePicker/FilePicker.vue b/lib/components/FilePicker/FilePicker.vue index 10932748..404dd705 100644 --- a/lib/components/FilePicker/FilePicker.vue +++ b/lib/components/FilePicker/FilePicker.vue @@ -191,6 +191,8 @@ const currentPath = computed({ window.sessionStorage.setItem('NC.FilePicker.LastPath', path) } navigatedPath.value = path + // Reset selected files + selectedFiles.value = [] }, })