Skip to content

Commit

Permalink
Fix binding button element (#473)
Browse files Browse the repository at this point in the history
Co-authored-by: Hunter Johnston <64506580+huntabyte@users.noreply.github.com>
  • Loading branch information
Stadly and huntabyte authored Apr 17, 2024
1 parent e966830 commit 7342d3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-rats-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

Fix binding button element
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<!-- svelte-ignore a11y-no-static-element-interactions -->
<svelte:element
this={href ? "a" : "button"}
bind:this={el}
type={href ? undefined : type}
{href}
on:click
Expand Down

0 comments on commit 7342d3f

Please sign in to comment.