Skip to content

Commit 8373309

Browse files
committed
IMP: use native closeby tag as value
1 parent 2b71423 commit 8373309

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dialog.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export default function (Alpine) {
1010
? evaluateLater(expression)
1111
: () => {};
1212
const lockPageScroll = modifiers.includes("noscroll");
13-
const closeby = modifierValue(modifiers, "closeby", "any");
13+
const closeBy = el.hasAttribute("closeby")
14+
? el.getAttribute("closeby")
15+
: modifierValue(modifiers, "closeby", "closerequest");
1416

1517
// Remove any logic set by `x-show`
1618
el.style.display = null;

0 commit comments

Comments
 (0)