Fix issue where the first command in the command palette isn't selected when the dialog is opened

This commit is contained in:
Jonatan Heyman 2025-04-23 15:18:32 +02:00
parent 8674c775fa
commit db8fb5fd18
2 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,13 @@
Here are the most notable changes in each release. For a more detailed list of changes, see the [Github Releases page](https://github.com/heyman/heynote/releases).
## 2.2.1 (not released yet)
### Bug Fixes
- Fix issue where the second command in the command palette, instead of the first command, was selected when the palette is opened.
## 2.2.0
### New Features

View File

@ -40,7 +40,7 @@
this.$refs.container.focus()
this.$refs.input.focus()
this.buildItems()
if (this.items.length > 1) {
if (this.items.length > 1 && !this.initialFilter?.startsWith(">")) {
this.selected = 1
}
},