0

I want to disable those tab click scroll down. when clicking on any tab I don't want to scroll on its content

enter image description here

1
0

My temporary solution was changing _scrollToTopIfVisible function in this file

\lib\web\mage\collapsible.js

From

        _scrollToTopIfVisible: function (elem) {
            if (!this._isElementOutOfViewport(elem)) {
                elem.scrollIntoView();
            }
        },
to

        _scrollToTopIfVisible: function (elem) {
            if (this._isElementOutOfViewport(elem)) {
                elem.scrollIntoView();
            }
        },

If anyone has other soluation please share

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.