Skip to content

Commit 5682136

Browse files
author
abdel-17
committed
test using click instead of pointerdown
1 parent 0398082 commit 5682136

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/svelte-file-tree/src/lib/components/TreeItem/TreeItem.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
style,
3232
onfocusin,
3333
onkeydown,
34-
onpointerdown,
34+
onclick,
3535
ondragstart,
3636
ondragover,
3737
ondragleave,
@@ -85,7 +85,7 @@
8585
style={typeof style === "function" ? style(itemContext) : style}
8686
onfocusin={composeEventHandlers(onfocusin, attributes.onfocusin)}
8787
onkeydown={composeEventHandlers(onkeydown, attributes.onkeydown)}
88-
onpointerdown={composeEventHandlers(onpointerdown, attributes.onpointerdown)}
88+
onclick={composeEventHandlers(onclick, attributes.onclick)}
8989
ondragstart={composeEventHandlers(ondragstart, attributes.ondragstart)}
9090
ondragover={composeEventHandlers(ondragover, attributes.ondragover)}
9191
ondragleave={composeEventHandlers(ondragleave, attributes.ondragleave)}

packages/svelte-file-tree/src/lib/components/TreeItem/state.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ export class TreeItemAttributes {
402402
event.preventDefault();
403403
};
404404

405-
readonly onpointerdown: EventHandler<PointerEvent, HTMLElement> = (event) => {
405+
readonly onclick: EventHandler<MouseEvent, HTMLElement> = (event) => {
406406
if (this.#itemContext.disabled) {
407407
return;
408408
}

0 commit comments

Comments
 (0)