Skip to content

Commit

Permalink
fix: tags input clear trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Feb 25, 2023
1 parent f55fc3a commit 81ac845
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/little-insects-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zag-js/tags-input": patch
---

Fix event name mismatch in clear trigger event name
2 changes: 1 addition & 1 deletion packages/machines/tags-input/src/tags-input.connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export function connect<T extends PropTypes>(state: State, send: Send, normalize
hidden: isEmpty,
onClick() {
if (!isInteractive) return
send("CLEAR_ALL")
send("CLEAR_VALUE")
},
}),
}
Expand Down

0 comments on commit 81ac845

Please sign in to comment.