Skip to content

Unable to insert more than one table row at a time #10628

Closed

Description

@rilrom

Describe the Bug

This is lexical specific bug and has been fixed in v0.22.0. Resolving this on our end would involve upgrading our lexical dependencies to at least v0.22.0.

Additional context can be found in the lexical PR.

Link to the code that reproduces this issue

meta/lexical#6963

Reproduction Steps

  1. Select multiple rows and open the table action menu.
  2. Select the 'insert XX rows below button.
  3. Notice that only one row is inserted, and it is sometimes in the incorrect spot.

Which area(s) are affected? (Select all that apply)

plugin: richtext-lexical

Environment Info

Payload: 3.17.1
Next.js: 15.1.4

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Jan 17, 2025
  2. added and removed
    validate-reproduction
    on Jan 17, 2025
  3. AlessioGr commented on Jan 17, 2025

    @AlessioGr
    Member

    Resolving this on our end would involve upgrading our lexical dependencies to at least v0.22.0.

    This will be tricky, as that might be a breaking change.

    We might have to use our own copy of the lexical-table package - same way we did with lexical-markdown

  4. rilrom commented on Jan 17, 2025

    @rilrom
    ContributorAuthor

    Resolving this on our end would involve upgrading our lexical dependencies to at least v0.22.0.

    This will be tricky, as that might be a breaking change.

    We might have to use our own copy of the lexical-table package - same way we did with lexical-markdown

    That's unfortunate. Are we stuck on v0.21.0 for the rest of Payload v3?

  5. AlessioGr commented on Jan 17, 2025

    @AlessioGr
    Member

    That's unfortunate. Are we stuck on v0.21.0 for the rest of Payload v3?

    Yep, this will likely be the case

  6. rilrom commented on Jan 17, 2025

    @rilrom
    ContributorAuthor

    That's unfortunate. Are we stuck on v0.21.0 for the rest of Payload v3?

    Yep, this will likely be the case

    Okay, in that case it might be worth exploring removing the ability for more than one row to be inserted with the TableActionMenu plugin, otherwise we're just leaving in broken functionality. Or the alternative of managing our own table package also works, just comes with additional overhead.

  7. removed
    status: needs-triage
    on Mar 6, 2025
  8. github-actions commented on Mar 11, 2025

    @github-actions
    Contributor

    🚀 This is included in version v3.28.0

  9. github-actions commented on Mar 19, 2025

    @github-actions
    Contributor

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

  10. locked as resolved and limited conversation to collaborators on Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions