Skip to content

Commit 002d9d9

Browse files
committed
FIX: closeby support value
1 parent b708d2f commit 002d9d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export default function (Alpine) {
2424
open();
2525
}
2626

27-
const closeBySupported = () => {
27+
const closeBySupported = (() => {
2828
return "closedBy" in HTMLDialogElement.prototype;
29-
};
29+
})();
3030

3131
function scrollLock(use = true) {
3232
document.body.style.overflow = use ? "hidden" : "";

0 commit comments

Comments
 (0)