We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f48740 commit df752d4Copy full SHA for df752d4
src/dialog.js
@@ -11,9 +11,9 @@ export default function (Alpine) {
11
: () => {};
12
const canEvaluate = expression.length > 0;
13
const lockPageScroll = modifiers.includes("noscroll");
14
- const closeBy = el.hasAttribute("closeby")
15
- ? el.getAttribute("closeby")
16
- : modifierValue(modifiers, "closeby", "closerequest");
+ const closeBy =
+ el.getAttribute("closeby") ||
+ modifierValue(modifiers, "closeby", "closerequest");
17
18
// Remove any logic set by `x-show`
19
el.style.display = null;
0 commit comments