Skip to content

Commit d9f1d0f

Browse files
committed
add button type
1 parent 9e91af6 commit d9f1d0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/feedback/src/screenshot/components/Toolbar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export default function ToolbarFactory({ h }: FactoryParams) {
2323
<div />
2424
<div class="editor__tool-bar">
2525
<button
26+
type="button"
2627
class={`editor__tool ${action === 'crop' ? 'editor__tool--active' : ''}`}
27-
onClick={e => {
28-
e.preventDefault();
28+
onClick={() => {
2929
if (action === 'crop') {
3030
setAction('');
3131
} else {
@@ -36,9 +36,9 @@ export default function ToolbarFactory({ h }: FactoryParams) {
3636
<CropIcon />
3737
</button>
3838
<button
39+
type="button"
3940
class={`editor__tool ${action === 'annotate' ? 'editor__tool--active' : ''}`}
40-
onClick={e => {
41-
e.preventDefault();
41+
onClick={() => {
4242
if (action === 'annotate') {
4343
setAction('');
4444
} else {

0 commit comments

Comments
 (0)