Error block indication is not clear
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) .
Reproduction Steps
Step for reproduction:
-
Clone the reproduction repo or create a new payload website template
-
Create a new Page instance
-
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
-
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
Closing in favor of #7914.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
The user has reported in Discord that this issue still exists. I haven't reproduced it, but it seems different than #7914
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.