If we add the Offcanvas widget in the header and the header is sticky, if we use the Slide up after (px) option, Offcanvas will be hidden in the front end after scrolling.
To better understand this problem, please see this link. Then Open Offcanvas. Then scroll the page. After some scrolling, Offcanvas will be hidden. Again, if you scroll up the page, Offcanvas will appear.
Unfortunately, this cannot be prevented since the entire header is transformed upwards.
If you want to use the slide-up setting, place the offcanvas element somewhere else.
The only perfect solution to this problem is to put the toggle in the header, but put the offcanvas content in the footer(to be displayed on all pages). So when scrolling, the offcanvas content is displayed without problems.
Doesn’t this solution create a problem in terms of structure?