Skip to content

Commit bedcb17

Browse files
committed
fix: rich text type button
1 parent 5fb3789 commit bedcb17

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

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)