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?

js/tygh/core.js

Try to replace:

                if (s_elm && s_elm.length) {
                    $.scrollToElm(s_elm);
                }

with

                if (s_elm && s_elm.length) {
                    //$.scrollToElm(s_elm);
                }

Then clear cache

(!) Not tested

I tried that still keep scrolling.

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