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

RichText: fix invisible caret for placeholder on focus #17450

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

ellatrix
Copy link
Member

@ellatrix ellatrix commented Sep 16, 2019

Description

Follow up to #17439. See #17439 (comment).

In Chrome, when a rich text instance is set to keep the placeholder on focus, the caret disappears on click. To fix the issue we can reset the selection to the correct one.

How has this been tested?

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@ellatrix ellatrix requested a review from afercia September 16, 2019 12:39
@ellatrix ellatrix added this to the Gutenberg 6.5 milestone Sep 16, 2019
@ellatrix ellatrix added [Package] Rich text /packages/rich-text Browser Issues Issues or PRs that are related to browser specific problems labels Sep 16, 2019
@youknowriad youknowriad mentioned this pull request Sep 16, 2019
5 tasks
@youknowriad youknowriad merged commit 7740a67 into master Sep 16, 2019
@youknowriad youknowriad deleted the try/fix-placeholder-caret branch September 16, 2019 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Package] Rich text /packages/rich-text
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants