Skip to content

Commit

Permalink
Fix/double click outside breaks checkbox label (chakra-ui#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
visualjerk committed Feb 8, 2023
1 parent 7cc4a59 commit d6c1560
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curvy-days-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zag-js/checkbox": patch
---

Fix double click outside breaking click on checkbox label
1 change: 0 additions & 1 deletion packages/machines/checkbox/src/checkbox.connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export function connect<T extends PropTypes>(state: State, send: Send, normalize
"data-invalid": dataAttr(isInvalid),
onPointerDown(event) {
if (!isInteractive) return
event.preventDefault()
event.stopPropagation()
},
}),
Expand Down

0 comments on commit d6c1560

Please sign in to comment.