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

Textarea labels missing #8247

Closed denolfe closed 2 weeks ago

denolfe commented 2 weeks ago

Link to reproduction

pnpm dev _community

Environment Info

Binaries:
  Node: 22.6.0
  npm: 10.8.2
  Yarn: 1.22.19
  pnpm: 9.7.1
Relevant Packages:
  next: 15.0.0-canary.104
  @payloadcms/db-postgres: 3.0.0-beta.104
  @payloadcms/live-preview-react: 3.0.0-beta.104
  @payloadcms/translations: 3.0.0-beta.104
  react: 19.0.0-rc-06d0b89e-20240801
  react-dom: 19.0.0-rc-06d0b89e-20240801
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020
  Available memory (MB): 32768
  Available CPU cores: 12

Describe the Bug

Custom labels are broken on textarea fields and possibly others.

Sounds like caused by this PR released in beta 105: https://github.com/payloadcms/payload/pull/8190. Brought up by @mykz.

CleanShot 2024-09-16 at 18 27 31

Reproduction Steps

  1. pnpm dev _community
  2. Add textarea field with label
        {
          name: 'textarea',
          type: 'textarea',
          label: 'Custom Textarea Label',
        },
  1. Load admin and see that label is missing

Adapters and Plugins

No response

paulpopus commented 2 weeks ago

Fixed in https://github.com/payloadcms/payload/pull/8248

github-actions[bot] commented 1 week ago

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