Skip to content

Improve scroll to mandatory field when form is submitted with errors

Guill requested to merge guill/tiki:20.x into 20.x

Currently the scrolling is sending the mandatory errored field really at the top of the browser. 1. it's ugly. 2. it gives issues with non-fixed top menus.

This commit fixes this by scrolling the mandatory errored field to the middle of the screen. It works well with the default install (haven't tried other special custom designs), for both new inserting design and legacy one.

Merge request reports