tech-systems / panes

🎉📱 Create dynamic modals, cards, panes for your applications in few steps. One instance – Thousands solutions. Any framework and free.
https://panejs.com
MIT License
687 stars 40 forks source link

[FEAT] Ion-content set scroll-y #202

Open roman-rr opened 1 year ago

roman-rr commented 1 year ago

Describe your feature request detailed

Automatically set scroll-y="false" for Ion-content directive element for visible pane statement. Should solve many view issues with ionic framework.

pinguluk commented 1 month ago

I think this causes ion-content to still have the "scroll-y" set to false, when navigating back to the previous page, thus the scroll will be disabled.

A workaround is to use, to re-enable scroll-y on ion-content


    ionViewDidLeave() {
        document.querySelector('ion-content').setAttribute('scroll-y', 'true');
    }

I think a fix should reset the original state of scroll-y when the pane is destroyed.