payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
23.58k stars 1.5k forks source link

Unusual indentation behavior #8098

Closed drewbo closed 3 weeks ago

drewbo commented 3 weeks ago

Link to reproduction

No response

Environment Info

Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.22
  pnpm: 9.7.0
Relevant Packages:
  payload: 3.0.0-beta.98
  next: 15.0.0-canary.104
  @payloadcms/db-postgres: 3.0.0-beta.98
  @payloadcms/email-nodemailer: 3.0.0-beta.98
  @payloadcms/graphql: 3.0.0-beta.98
  @payloadcms/next/utilities: 3.0.0-beta.98
  @payloadcms/plugin-cloud: 3.0.0-beta.98
  @payloadcms/richtext-lexical: 3.0.0-beta.98
  @payloadcms/translations: 3.0.0-beta.98
  @payloadcms/ui/shared: 3.0.0-beta.98
  react: 19.0.0-rc-06d0b89e-20240801
  react-dom: 19.0.0-rc-06d0b89e-20240801

Describe the Bug

I'm using @payloadcms/richtext-lexical along with FixedToolbarFeature. The increase and decrease indent buttons appear enabled at unexpected times:

video attached in the reproduction steps

Reproduction Steps

(The decreasing indent shown in the video is accomplished via undo keyboard command)

https://github.com/user-attachments/assets/4c38d665-1bc2-48dc-b965-20fde466f01a

Adapters and Plugins

@payloadcms/richtext-lexical: 3.0.0-beta.98

GermanJablo commented 3 weeks ago

Duplicated of https://github.com/payloadcms/payload/issues/8038

github-actions[bot] commented 3 weeks ago

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