Hi,
Any method that can keep the drawer open even click on overlay?
I know can make "data-kt-drawer-overlay" = false can do this, but I want to keep the overlay as well.
Thanks.
Hi,
At the moment this option is not supported but you can quickly implement it by using data-kt-drawer-permanent="true"
for the Drawer element and modify the below _createOverlay
function in src/js/components/drawer.js
under the click event handler:
KTUtil.addEvent(the.overlayElement, "click", function(e) {
e.preventDefault();
if ( _getOption("permanent") !== true ) {
_hide();
}
});
Hi,
Thanks for the solution and it works, and may I know will you release this in next version as the core program modified?
Thanks.
Hi ,
Yes, sure, this new feature will be added into the core of Keen in the next update soon.
Regards.