Skip to content

outdent with shift-tab can make some blocks reduce their indent while others don't #11091

Open
@GermanJablo

Description

@GermanJablo

Describe the Bug

If there are two blocks selected (ex: 2 paragraphs), and one has indent 1 and the other has indent 0, pressing shift+tab causes both to end with indent 0.
The outdent command should check that all selected blocks can receive outdent.
I just fixed that for the toolbar case: #11089

Link to the code that reproduces this issue

https://github.com/payloadcms/payload

Reproduction Steps

  • pnpm dev fields
  • In the lexical fields collection, select a paragraph with indent 1 and another with indent 0 and press shift + tab

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

plugin: richtext-lexical

Environment Info

Payload: 3.22.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions