diff --git a/package.json b/package.json index eceb4b3..f12037b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@selenite/commons", - "version": "0.22.12", + "version": "0.22.13", "repository": "github:ShaitanLyss/selenite-commons", "license": "MIT", "keywords": [ diff --git a/src/lib/actions/inputs.ts b/src/lib/actions/inputs.ts index db2d81e..68e2881 100644 --- a/src/lib/actions/inputs.ts +++ b/src/lib/actions/inputs.ts @@ -35,11 +35,11 @@ export const checkbox: Action = (node, en if (pointedDownCheckbox) { document.body.style.userSelect = 'none'; } - }); + }, {capture: true}); document.addEventListener('pointerup', () => { document.body.style.userSelect = ''; pointedDownCheckbox = undefined; - }); + }, {capture: true}); } function triggerOnEnter(event: KeyboardEvent) { diff --git a/src/routes/checkbox/+page.svelte b/src/routes/checkbox/+page.svelte index 18b77a4..444b9e0 100644 --- a/src/routes/checkbox/+page.svelte +++ b/src/routes/checkbox/+page.svelte @@ -1,5 +1,5 @@ @@ -11,7 +11,7 @@ {#each range(10) as i} {/each}