Skip to content

Commit 62a20d9

Browse files
authored
Merge pull request #282 from softnetics/benz/fix/rich-text-type-button
fix: rich text type button
2 parents 5fb3789 + 78be38e commit 62a20d9

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changeset/five-foxes-push.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@genseki/react": patch
3+
---
4+
5+
fix: rich text type button

packages/react/v2/components/compound/editor/components/redo-undo-buttons.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const RedoButton = () => {
3131

3232
return (
3333
<Button
34+
type="button"
3435
size="md"
3536
variant="ghost"
3637
className="duration-150 ease-out transition-all h-[36px]"

packages/react/v2/components/compound/editor/components/text-align-buttons.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const TextAlignButton = ({ type }: { type: TextAlignType }) => {
7878
return (
7979
<ToggleGroupItem value={type} aria-label={`Align ${type}`} asChild>
8080
<ToolbarItem
81+
type="button"
8182
variant="default"
8283
data-selected={isSelected}
8384
aria-label={`Text align ${type}`}

packages/react/v2/components/compound/editor/components/upload-image-button.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const UploadImageButton = () => {
1111

1212
return (
1313
<Button
14+
type="button"
1415
size="md"
1516
variant="ghost"
1617
className="self-center h-[36px]"

0 commit comments

Comments
 (0)