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

Format buttons: Incorrect format is displayed after applying format and moving the caret #50316

Open
fluiddot opened this issue May 4, 2023 · 0 comments
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended

Comments

@fluiddot
Copy link
Contributor

fluiddot commented May 4, 2023

Description

When applying format changes in the text, after moving the caret the format buttons display incorrect format.

NOTE: Looks like this might be related to highlighting text color, as it can only be reproduced when the text already has the highlight text color format applied.

Step-by-step reproduction instructions

  1. Add a Paragraph block.
  2. Add text with multiple words.
  3. Select one of the words.
  4. Apply highlight text color (NOTE: Without applying highlight text color, the issue can't be reproduced).
  5. Select another word.
  6. Apply any of the formats (e.g. Bold).
  7. Tap at the end of the text (i.e. move the caret to the end).
  8. Observe that the format buttons in the toolbar display an incorrect format. All format buttons should be off but the ones selected in step 6 remain.

Expected behaviour

Format buttons should always display the correct format.

Actual behaviour

Format buttons are not displaying the correct format.

Screenshots or screen recording (optional)

ios-incorrect-format.MP4

WordPress information

  • WordPress version: N/A
  • Gutenberg version: N/A
  • Are all plugins except Gutenberg deactivated? N/A
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes. I'm using the Masu theme.

Device information

  • Device: iPhone 11
  • Operating system: iOS 15.4.1
  • WordPress app version: 22.3.0.1
@fluiddot fluiddot added [Type] Bug An existing feature does not function as intended [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) labels May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant