Skip to content

Commit c799c50

Browse files
authored
fix: make KeybindingBadge reactive to prop changes (#256)
1 parent 637d3db commit c799c50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/client/webcomponents/components/command-palette/KeybindingBadge.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<script setup lang="ts">
2+
import { computed } from 'vue'
23
import { formatKeybinding } from '../../state/keybindings'
34
45
const props = defineProps<{
56
keyString: string
67
}>()
78
8-
const keys = formatKeybinding(props.keyString)
9+
const keys = computed(() => formatKeybinding(props.keyString))
910
</script>
1011

1112
<template>

0 commit comments

Comments
 (0)