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

Rich Text Editor | Fix for Editor's blinking caret disappearing issue in Firefox browser #1455

Merged
merged 16 commits into from
Aug 31, 2023

Conversation

aagash-ni
Copy link
Contributor

@aagash-ni aagash-ni commented Aug 25, 2023

Pull Request

🤨 Rationale

This PR contains workaround for resolves #1454 Firefox issue when the editor gets focused, the blinking caret will be visible until we click format buttons (Bold, Italic ...). But once any of the buttons are clicked, the editor internally has its focus but the blinking caret disappears.

Issue Link : #1454

👩‍💻 Implementation

  • Triggering Blur() and setting focus() in the editor will make the caret re-appears when clicking the formatting buttons.

🧪 Testing

  • Verified the caret visibility in the Firefox browser when clicking on the format button. Since Firefox is reporting the editor as an active element even though Caret is not rendered, manually verified this behavior.
  • Added a test case to verify the active element in the browser especially when clicking the format button.

✅ Checklist

  • I have updated the project documentation to reflect my changes or determined no changes are needed.

@aagash-ni aagash-ni requested a review from m-akinc August 25, 2023 13:15
@aagash-ni aagash-ni marked this pull request as ready for review August 28, 2023 05:17
@aagash-ni aagash-ni force-pushed the users/aagash/firefox-caret-issue branch 2 times, most recently from a81799e to c7d71c2 Compare August 29, 2023 12:49
@aagash-ni aagash-ni requested a review from jattasNI August 29, 2023 13:23
Copy link
Contributor

@jattasNI jattasNI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If @rajsite doesn't get to this by the time you resolve my feedback, I think it's ok to submit.

@rajsite rajsite enabled auto-merge (squash) August 31, 2023 18:18
@rajsite rajsite merged commit fcc12d5 into main Aug 31, 2023
@rajsite rajsite deleted the users/aagash/firefox-caret-issue branch August 31, 2023 18:55
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.

Rich Text Editor | Blinking caret | in editor disappears after clicking any button in Firefox browser.
6 participants