Skip to content

Commit 654570a

Browse files
committed
cleanup
1 parent 6442b08 commit 654570a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/javascript/active_admin/features

‎app/javascript/active_admin/features/drawer.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const open = function(drawer, trigger) {
2323
drawer.setAttribute("aria-modal", "true")
2424
drawer.setAttribute("role", "dialog")
2525

26-
document.body.classList.add("overflow-hidden", "xl:overflow-auto")
26+
document.body.classList.add("overflow-hidden")
2727

2828
backdrop = document.createElement("div")
2929
backdrop.className = "fixed inset-0 z-30 bg-gray-900/50 dark:bg-gray-900/80"
@@ -46,7 +46,7 @@ const close = function() {
4646
activeDrawer.classList.remove("translate-x-0")
4747
activeDrawer.removeAttribute("aria-modal")
4848
activeDrawer.removeAttribute("role")
49-
document.body.classList.remove("overflow-hidden", "xl:overflow-auto")
49+
document.body.classList.remove("overflow-hidden")
5050
backdrop.remove()
5151
cleanupTrap()
5252

0 commit comments

Comments
 (0)