We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 291d42e commit 55cc688Copy full SHA for 55cc688
1 file changed
src/index.ts
@@ -58,7 +58,8 @@ export default function subscribe(container: HTMLElement): Subscription {
58
59
function onMouseDown(event: MouseEvent): void {
60
if (!(event.target instanceof Element)) return
61
- if (event.target.hasAttribute('data-check-all-item')) {
+ const target = event.target instanceof HTMLLabelElement ? event.target.control || event.target : event.target
62
+ if (target.hasAttribute('data-check-all-item')) {
63
shiftKey = event.shiftKey
64
}
65
0 commit comments