mirror of
https://github.com/heyman/heynote.git
synced 2025-06-27 13:01:51 +02:00
Fix issue where the first command in the command palette isn't selected when the dialog is opened
This commit is contained in:
parent
8674c775fa
commit
db8fb5fd18
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user