mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-16 00:42:32 -05:00
Allow arrow keys to function when SearchDialog is not open (#777)
This commit is contained in:
@@ -136,6 +136,7 @@ export default {
|
||||
this.$emit(SELECTED_EVENT, recipe);
|
||||
},
|
||||
onUpDown(e) {
|
||||
if (this.dialog) {
|
||||
if (e.keyCode === 38) {
|
||||
e.preventDefault();
|
||||
this.selectedIndex--;
|
||||
@@ -146,6 +147,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
this.selectRecipe();
|
||||
}
|
||||
},
|
||||
resetSelected() {
|
||||
this.searchString = "";
|
||||
|
||||
Reference in New Issue
Block a user