payload icon indicating copy to clipboard operation
payload copied to clipboard

Error block indication is not clear

Open ChannKan opened this issue 1 year ago • 3 comments

Link to reproduction

https://github.com/shefing/PayloadSplitBug

Environment Info

New instance of payload website template

Describe the Bug

When I have a content page that contains many blocks one after the next , and I have an issue with one of the blocks (For example : a required field is empty ), I get a pop-up error message box that I have an error in the block before the block with the issue. (For example : block number 3 has a non-filed required field , the message wile be - block.2.XXX .....)

Attached a screenshot with the issue (Issue is in the second block but the pop-up points on block 1) .

Screenshot 2024-08-28 at 11 46 02

Reproduction Steps

Step for reproduction:

  1. Clone the reproduction repo or create a new payload website template

  2. Create a new Page instance

  3. In the Hero tab: - Fill in the title - Add a Link block and fill it up - Add a second Link block and fill it up except the Label field

  4. Try to publish the page

Expected : An error message "hero.links.2.link.label"

Actual: An error message "hero.links.1.link.label"

Adapters and Plugins

No response

ChannKan avatar Aug 28 '24 09:08 ChannKan

Closing in favor of #7914.

denolfe avatar Aug 28 '24 13:08 denolfe

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

github-actions[bot] avatar Sep 06 '24 20:09 github-actions[bot]

The user has reported in Discord that this issue still exists. I haven't reproduced it, but it seems different than #7914

GermanJablo avatar Sep 16 '24 21:09 GermanJablo

Closing as I was also unable to reproduce. This was likely fixed with a newer version. This did highlight a new issue, however, where the error state gets applied to the Link Type. Will open a separate issue for that.

Image

zubricks avatar Mar 14 '25 01:03 zubricks