Skip to content

Commit fd7dfc4

Browse files
authored
[6.x] Escape command palette when navigating (#13569)
1 parent 333ee00 commit fd7dfc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/js/components/command-palette/CommandPalette.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ const modalClasses = cva({
271271
],
272272
})({});
273273
274-
router.on('start', () => Statamic.$commandPalette.clear());
274+
router.on('start', () => {
275+
Statamic.$commandPalette.clear();
276+
open.value = false;
277+
});
275278
</script>
276279

277280
<template>

0 commit comments

Comments
 (0)