Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/vue/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Ref } from "vue";
import type { ParentConfig } from "../types";

export type VueElement = HTMLElement | Ref<HTMLElement | undefined>;
export type VueElement = HTMLElement | Ref<HTMLElement | null | undefined>;

export interface VueDragAndDropData<T> extends VueParentConfig<T> {
parent: HTMLElement | Ref<HTMLElement | undefined>;
parent: VueElement;
values: Ref<Array<T>> | Array<T>;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@nuxtjs/tailwindcss": "^6.12.1",
"nuxt": "^3.11.1",
"vue": "^3.4.21",
"vue": "^3.5.0",
"vue-router": "^4.3.0",
"@formkit/drag-and-drop": "workspace:*"
},
Expand Down
6 changes: 3 additions & 3 deletions tests/pages/accessibility/index.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { dragAndDrop } from "../../../src/vue/index";

const parent1: Ref<HTMLElement | undefined> = ref(undefined);
const parent2: Ref<HTMLElement | undefined> = ref(undefined);
const parent3: Ref<HTMLElement | undefined> = ref(undefined);
const parent1 = useTemplateRef("parent1");
const parent2 = useTemplateRef("parent2");
const parent3 = useTemplateRef("parent3");

const values1 = ref(["Apple", "Banana", "Orange"]);
const values2 = ref(["Strawberry", "Blueberry", "Raspberry"]);
Expand Down
2 changes: 1 addition & 1 deletion tests/pages/classes/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const options = reactive({
synthDraggingClasss: "draggingClass",
});

const parent: Ref<HTMLElement | undefined> = ref(undefined);
const parent = useTemplateRef("parent");

const values = ref(["Apple", "Banana", "Orange"]);

Expand Down