Skip to content

Lexical: Floating select toolbar caret incorrectly positioned when selecting second line of text #6139

Closed

Description

@timotgl

Link to reproduction

https://demo.payloadcms.com/admin/collections/posts/6630dd6648cc4c160078c81f

Describe the Bug

Select any word in the second line of text in the editor. The caret (little upside down triangle normally positioned on the floating toolbar) seems to be misplaced.

From the official demo:
Screenshot 2024-04-30 at 14 51 37

From our own project (payload 2.13.0):
Screenshot 2024-04-30 at 14 55 27

For us, the first line is affected, the caret is positioned on top of the first icon in the toolbar.

Maybe related to #4041

To Reproduce

Select any word in the second line of text in the editor. The caret (little upside down triangle normally positioned on the floating toolbar) seems to be misplaced.

Payload Version

2.13.0

Adapters and Plugins

No response

Activity

  1. added
    status: needs-triage
    on Apr 30, 2024
  2. self-assigned this
    on Apr 30, 2024
  3. added
    status: verified
    plugin: richtext-lexical
    and removed
    status: needs-triage
    on Apr 30, 2024
  4. AlessioGr commented on Apr 30, 2024

    @AlessioGr
    Member

    Fixed by #6149

  5. github-actions commented on Sep 7, 2024

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  6. locked as resolved and limited conversation to collaborators on Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

plugin: richtext-lexicalstatus: verified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions