Skip to content

Commit

Permalink
Fix buttons causing form submissions, closes #35
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Dec 1, 2022
1 parent 648561e commit 0b369de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Next
- Fix buttons causing form submissions

## 2.2.3 - 2022 Nov 10
- Improve Tailwind compatibility

Expand Down
2 changes: 2 additions & 0 deletions src/lib/DatePicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
<div class="tab-container" tabindex="-1">
<div class="top">
<button
type="button"
class="page-button"
tabindex="-1"
on:click={() => setMonth(browseDate.getMonth() - 1)}
Expand Down Expand Up @@ -267,6 +268,7 @@
>
</div>
<button
type="button"
class="page-button"
tabindex="-1"
on:click={() => setMonth(browseDate.getMonth() + 1)}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
/></svg
>
</a>
<button class="icon theme-toggle" on:click={toggleTheme}>
<button type="button" class="icon theme-toggle" on:click={toggleTheme}>
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 24 24"
Expand Down

0 comments on commit 0b369de

Please sign in to comment.