SIGN IN SIGN UP
payloadcms / payload UNCLAIMED

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.

0 0 16 TypeScript

fix(ui): prevent wrong scroll target when adding rows in repeated array blocks (#15047)

### What?

Adding rows to an array field inside repeated Lexical blocks sometimes
scrolls to the first block instead of the block where the row was added.

### Why?

Row elements share the same DOM id because the parent path isn’t made
unique per block in Lexical, so `scrollToID` matches the first
occurrence.

### How?

Add a block-unique prefix into the array field path/id generation when
rendering array fields, ensuring each block’s rows have distinct DOM ids
and scroll targets.

Fixes: #14333
R
roboin committed
f13a741059003af1b87d418eb3ae027647999030
Parent: fe9119b
Committed by GitHub <noreply@github.com> on 1/8/2026, 3:38:05 PM