Skip to content

Commit

Permalink
Merge pull request #2742 from tomdyqin/feature/toolbar-pressed
Browse files Browse the repository at this point in the history
fix: ToolbarButton not update the pressed style
  • Loading branch information
zbeyens authored Nov 28, 2023
2 parents 0b5962d + 2902cea commit 22be03b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/www/src/registry/default/plate-ui/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const ToolbarButton = React.forwardRef<
typeof pressed === 'boolean' ? (
<ToolbarToggleGroup
type="single"
value={pressed ? 'single' : undefined}
value="single"
>
<ToolbarToggleItem
ref={ref}
Expand All @@ -116,7 +116,7 @@ const ToolbarButton = React.forwardRef<
isDropdown && 'my-1 justify-between pr-1',
className
)}
value="single"
value={pressed ? 'single' : ''}
{...props}
>
<div className="flex flex-1">{children}</div>
Expand Down

0 comments on commit 22be03b

Please sign in to comment.