Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: corrected toggle calls for Superscript and Subscript #3402

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

hamza-hadj-aissa
Copy link
Contributor

@hamza-hadj-aissa hamza-hadj-aissa commented Jul 30, 2024

Descripition

The MoreDropdownMenu component had incorrect behavior for toggling the Superscript and Subscript marks. The behavior of these marks was swapped; selecting Superscript was incorrectly setting the Subscript mark and vice versa. Additionally, the clear and key parameters needed adjustments to ensure the correct mark is toggled while clearing the other.

Summary of Changes:

  • Updated the clear parameter to include both MARK_SUBSCRIPT and MARK_SUPERSCRIPT.
  • Corrected the key values for Superscript and Subscript, which were previously swapped.

Checklist:

  • yarn typecheck
  • yarn lint:fix
  • yarn test
  • yarn brl
  • yarn changeset
  • Updated changelog

Changelog Update

  • MoreDropdownMenu: Fixed the toggling behavior for Superscript and Subscript marks.

Copy link

changeset-bot bot commented Jul 30, 2024

🦋 Changeset detected

Latest commit: f31b4c3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@udecode/plate-normalizers Patch
@udecode/plate-utils Patch
@udecode/plate-selection Patch
@udecode/plate-combobox Patch
@udecode/plate-table Patch
@udecode/plate-link Patch
@udecode/plate Patch
@udecode/plate-common Patch
@udecode/plate-emoji Patch
@udecode/plate-mention Patch
@udecode/plate-slash-command Patch
@udecode/plate-serializer-csv Patch
@udecode/plate-serializer-docx Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jul 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 8:29am

@hamza-hadj-aissa hamza-hadj-aissa force-pushed the fix/more-dropdown-menu branch from a3d7b91 to f31b4c3 Compare July 31, 2024 08:20
@zbeyens zbeyens merged commit 4d993e7 into udecode:main Jul 31, 2024
1 of 2 checks passed
@hamza-hadj-aissa hamza-hadj-aissa deleted the fix/more-dropdown-menu branch August 7, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants