What happened?
Description
When saving an entry causes validation errors, the error messages in the summary above the form are anchor links that should scroll to the field in question:

I found that this no longer words if the error is inside a Matrix field. I've only checked Matrix fields that are set to display as inline blocks. Might also be an issue if the field is set to card or element index view.
Steps to reproduce
- Create a Matrix field set to inline view and select an entry type with a required field.
- On a new entry, create an entry in the Matrix field and leave the required field empty.
- Save the entry.
- Click on the link in the error summary about the empty required field.
Expected behavior
The links should always scroll to the field in question, even inside an inline matrix block.
Actual behavior
Clicking on the links doesn't do anything.
Craft CMS version
5.4.5.1
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
When saving an entry causes validation errors, the error messages in the summary above the form are anchor links that should scroll to the field in question:
I found that this no longer words if the error is inside a Matrix field. I've only checked Matrix fields that are set to display as inline blocks. Might also be an issue if the field is set to card or element index view.
Steps to reproduce
Expected behavior
The links should always scroll to the field in question, even inside an inline matrix block.
Actual behavior
Clicking on the links doesn't do anything.
Craft CMS version
5.4.5.1
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions