File tree 2 files changed +3
-3
lines changed
packages/svelte-file-tree/src/lib/components/TreeItem
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 31
31
style,
32
32
onfocusin,
33
33
onkeydown,
34
- onpointerdown ,
34
+ onclick ,
35
35
ondragstart,
36
36
ondragover,
37
37
ondragleave,
85
85
style ={typeof style === " function" ? style (itemContext ) : style }
86
86
onfocusin ={composeEventHandlers (onfocusin , attributes .onfocusin )}
87
87
onkeydown ={composeEventHandlers (onkeydown , attributes .onkeydown )}
88
- onpointerdown ={composeEventHandlers (onpointerdown , attributes .onpointerdown )}
88
+ onclick ={composeEventHandlers (onclick , attributes .onclick )}
89
89
ondragstart ={composeEventHandlers (ondragstart , attributes .ondragstart )}
90
90
ondragover ={composeEventHandlers (ondragover , attributes .ondragover )}
91
91
ondragleave ={composeEventHandlers (ondragleave , attributes .ondragleave )}
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ export class TreeItemAttributes {
402
402
event . preventDefault ( ) ;
403
403
} ;
404
404
405
- readonly onpointerdown : EventHandler < PointerEvent , HTMLElement > = ( event ) => {
405
+ readonly onclick : EventHandler < MouseEvent , HTMLElement > = ( event ) => {
406
406
if ( this . #itemContext. disabled ) {
407
407
return ;
408
408
}
You can’t perform that action at this time.
0 commit comments