Skip to content

Commit

Permalink
prevent button to trigger form (fix #70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ennoriel committed Mar 2, 2024
1 parent fd54d2b commit 35bf4ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# svelte-awesome-color-picker

## 3.0.6

### Patch Changes

- prevent button to trigger form (fix #70)

## 3.0.5

- Fix bug occurring when limiting the amount of textModeInputs or changing the order of textModeInputs (thanks to [al-soup](https://github.com/al-soup))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-awesome-color-picker",
"version": "3.0.5",
"version": "3.0.6",
"description": "A highly customizable color picker component library",
"homepage": "https://svelte-awesome-color-picker.vercel.app",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/variant/default/TextInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</div>

{#if textInputModes.length > 1}
<button on:click={() => (mode = nextMode)}>
<button type="button" on:click={() => (mode = nextMode)}>
<span class="disappear" aria-hidden="true">{texts.color[mode]}</span>
<span class="appear">{texts.changeTo} {nextMode}</span>
</button>
Expand Down
3 changes: 2 additions & 1 deletion src/routes/sections/50-Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@

### Default layout

<form action="post">
<ColorPicker bind:hex bind:rgb bind:hsv />

</form>
<div class="example-wrapper">
<div class="overflow">

Expand Down

0 comments on commit 35bf4ed

Please sign in to comment.