Skip to content

fix: make KeybindingBadge reactive to prop changes#256

Merged
antfu merged 1 commit intovitejs:mainfrom
SaKaNa-Y:patch-1
Mar 24, 2026
Merged

fix: make KeybindingBadge reactive to prop changes#256
antfu merged 1 commit intovitejs:mainfrom
SaKaNa-Y:patch-1

Conversation

@SaKaNa-Y
Copy link
Contributor

When using it, changing a shortcut doesn’t immediately update the UI — the panel must be closed and reopened to see the change.

For features other than "Toggle Command Palette," adding a shortcut currently only allows opening the feature, not closing it. Will the close functionality be added later?

Description

Linked Issues

Additional context

…ing call in computed() so keys update when keyString prop changes.

When using it, changing a shortcut doesn’t immediately update the UI — the panel must be closed and reopened to see the change.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 24, 2026

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@256

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@256

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@256

@vitejs/devtools-rpc

npm i https://pkg.pr.new/@vitejs/devtools-rpc@256

@vitejs/devtools-self-inspect

npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@256

commit: 3aa1a2f

@antfu antfu changed the title fix: make KeybindingBadge reactive to prop changes Wrap formatKeybinding call in computed() so keys update when keyString prop changes. fix: make KeybindingBadge reactive to prop changes Mar 24, 2026
@antfu antfu merged commit c799c50 into vitejs:main Mar 24, 2026
6 checks passed
@SaKaNa-Y SaKaNa-Y deleted the patch-1 branch March 24, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants