Skip to content

Commit 0cbe2f6

Browse files
committed
use dashed commands
1 parent a2beb10 commit 0cbe2f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

invoker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@
297297
if (invokee.popover) {
298298
const canShow = !invokee.matches(":popover-open");
299299
const shouldShow =
300-
canShow && (command === "togglepopover" || command === "showpopover");
301-
const shouldHide = !canShow && command === "hidepopover";
300+
canShow && (command === "toggle-popover" || command === "show-popover");
301+
const shouldHide = !canShow && command === "hide-popover";
302302

303303
if (shouldShow) {
304304
invokee.showPopover();
@@ -307,7 +307,7 @@
307307
}
308308
} else if (invokee.localName === "dialog") {
309309
const canShow = !invokee.hasAttribute("open");
310-
const shouldShow = canShow && command === "showmodal";
310+
const shouldShow = canShow && command === "show-modal";
311311
const shouldHide = !canShow && command === "close";
312312

313313
if (shouldShow) {

0 commit comments

Comments
 (0)