Skip to content

Commit

Permalink
Merge pull request #3402 from hamza-hadj-aissa/fix/more-dropdown-menu
Browse files Browse the repository at this point in the history
fix: corrected toggle calls for Superscript and Subscript
  • Loading branch information
zbeyens committed Jul 31, 2024
1 parent 7f6ab9d commit 775af4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/plate-ui/more-dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export function MoreDropdownMenu(props: DropdownMenuProps) {
<DropdownMenuItem
onSelect={() => {
toggleMark(editor, {
key: MARK_SUBSCRIPT,
clear: MARK_SUPERSCRIPT,
clear: [MARK_SUBSCRIPT, MARK_SUPERSCRIPT],
key: MARK_SUPERSCRIPT,
});
focusEditor(editor);
}}
Expand All @@ -46,8 +46,8 @@ export function MoreDropdownMenu(props: DropdownMenuProps) {
<DropdownMenuItem
onSelect={() => {
toggleMark(editor, {
key: MARK_SUPERSCRIPT,
clear: MARK_SUBSCRIPT,
clear: [MARK_SUPERSCRIPT, MARK_SUBSCRIPT],
key: MARK_SUBSCRIPT,
});
focusEditor(editor);
}}
Expand Down

0 comments on commit 775af4c

Please sign in to comment.