app/javascript/controllers/ui/dialog_controller.js in shadcn-ui-0.0.12 vs app/javascript/controllers/ui/dialog_controller.js in shadcn-ui-0.0.13
- old
+ new
@@ -59,9 +59,12 @@
}
closeBy(target) {
this.toggleClass(false);
+ if (target.getAttribute('data-ui--dialog-target') === 'modal') {
+ document.body.classList.remove("overflow-hidden");
+ }
this.dispatch("closed", { detail: { target: target } });
}
// Refactor Me
// This needs to be combined with the toggle method in sheet_controller