Skip to content

Commit

Permalink
fix(cdk:drag-drop): focus problem with pointer backend (#1202) (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuchg authored and danranVm committed Oct 21, 2022
1 parent 0f818a2 commit e46d5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cdk/drag-drop/src/composables/withDragHandle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const withDragHandle = (sourceEl: HTMLElement, handleEl: HTMLElement, con

registry.on(sourceEl, 'dragstart', e => preventNotHandle(dragTarget!, e))
} else {
registry.on(sourceEl, 'mousedown', e => preventNotHandle(e.target as HTMLElement, e))
registry.on(sourceEl, 'pointerdown', e => preventNotHandle(e.target as HTMLElement, e))
registry.on(sourceEl, 'touchstart', e => preventNotHandle(e.target as HTMLElement, e))
}
}

0 comments on commit e46d5cb

Please sign in to comment.