Attempt to fix note resizing with React keys and Muuri sync
This commit is contained in:
@@ -111,7 +111,9 @@ export function NoteActions({
|
||||
{(['small', 'medium', 'large'] as const).map((size) => (
|
||||
<DropdownMenuItem
|
||||
key={size}
|
||||
onClick={() => onSizeChange(size)}
|
||||
onClick={(e) => {
|
||||
onSizeChange?.(size);
|
||||
}}
|
||||
className={cn(
|
||||
"capitalize",
|
||||
currentSize === size && "bg-accent"
|
||||
|
||||
Reference in New Issue
Block a user