change recent database

This commit is contained in:
Jan Prochazka
2021-03-25 13:31:24 +01:00
parent 638b04877d
commit e2dcfe9940
3 changed files with 5 additions and 4 deletions

View File

@@ -25,11 +25,11 @@
import registerCommand from './registerCommand';
let domInput;
let parentCommand;
let filter = '';
const domItems = {};
$: selectedIndex = true ? 0 : filter;
$: parentCommand = _.isPlainObject($visibleCommandPalette) ? $visibleCommandPalette : null;
onMount(() => {
const oldFocus = document.activeElement;
@@ -50,7 +50,7 @@
function handleCommand(command) {
if (command.getSubCommands) {
parentCommand = command;
$visibleCommandPalette = command;
domInput.focus();
filter = '';
selectedIndex = 0;