How To Stop Content From Scrolling Automatically In Ui Dialog

Hi all,

There is a way to stop scrolling to anchor tag when opening UI Dialog?


Try to replace:

                if (s_elm && s_elm.length) {


                if (s_elm && s_elm.length) {

Then clear cache

(!) Not tested

I tried that still keep scrolling.

Fixed with an adding attribute tabindex="-1" to object-container.