Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Error while clicking arrow in the app search bar. #187

Open
Canario0 opened this issue Sep 15, 2021 · 1 comment
Open

Error while clicking arrow in the app search bar. #187

Canario0 opened this issue Sep 15, 2021 · 1 comment

Comments

@Canario0
Copy link

While trying to navigate with the arrows in the search bar of this theme, the following error triggers:
muk_issue

I think is has somithing to do with the following assigment:

Were offset is a const variable but will happend the same with the following ones:


key = event.shiftKey ? "ArrowUp" : "ArrowDown";

Were all those variables are defined as const at:

const key = event.key || String.fromCharCode(event.which);

const pre_focused = all.filter(".active") || $(all[0]);

const offset = all.index(pre_focused);

@daavii-b
Copy link

While trying to navigate with the arrows in the search bar of this theme, the following error triggers: muk_issue

I think is has somithing to do with the following assigment:

Were offset is a const variable but will happend the same with the following ones:

key = event.shiftKey ? "ArrowUp" : "ArrowDown";

Were all those variables are defined as const at:

const key = event.key || String.fromCharCode(event.which);

const pre_focused = all.filter(".active") || $(all[0]);

const offset = all.index(pre_focused);

You can change the variable definition from "const" to "let",

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants