Skip to content

Commit d422eb0

Browse files
authored
NXT-4107: FileExplorer: fix clickOutsideExceptions type to allow selector strings (#60)
NXT-4107 (Hub Space Explorer: Move / Copy items to any target)
1 parent 0d0b8c6 commit d422eb0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/components/src/components/FileExplorer/components/FileExplorer.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<script setup lang="ts">
22
/* eslint-disable max-lines */
3-
import { type Ref, computed, nextTick, ref, toRef, toRefs, watch } from "vue";
4-
import { onClickOutside, useResizeObserver } from "@vueuse/core";
3+
import { computed, nextTick, ref, toRef, toRefs, watch } from "vue";
4+
import {
5+
type MaybeElementRef,
6+
onClickOutside,
7+
useResizeObserver,
8+
} from "@vueuse/core";
59
import { debounce } from "lodash-es";
610
711
import OptionsIcon from "@knime/styles/img/icons/menu-options.svg";
@@ -98,7 +102,7 @@ type Props = {
98102
* Pass in refs to HTML elements which, when clicked,
99103
* should not unset the current selection.
100104
*/
101-
clickOutsideExceptions?: Array<Ref<HTMLElement | null>>;
105+
clickOutsideExceptions?: Array<MaybeElementRef | string>;
102106
/**
103107
* Selected item ids
104108
*/

0 commit comments

Comments
 (0)