mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
fixed tag commands active indicator not showing correctly
This commit is contained in:
parent
7f9ddbe6dd
commit
e6cd73265c
1 changed files with 5 additions and 1 deletions
|
|
@ -172,6 +172,10 @@ function updateSuggested(): void {
|
|||
|
||||
export let show = (): void => {
|
||||
themeChosen = false;
|
||||
|
||||
//take last element of array
|
||||
const list = CommandlineLists.current;
|
||||
console.log(list);
|
||||
if (!$(".page.pageLoading").hasClass("hidden")) return;
|
||||
Focus.set(false);
|
||||
$("#commandLine").removeClass("hidden");
|
||||
|
|
@ -715,7 +719,7 @@ $(document).on("click", "#testModesNotice .textButton", (event) => {
|
|||
if (attr === undefined) return;
|
||||
const commands = CommandlineLists.getList(attr);
|
||||
if (commands !== undefined) {
|
||||
if ($(event.currentTarget).attr("commands") === "commandsTags") {
|
||||
if ($(event.currentTarget).attr("commands") === "tags") {
|
||||
updateTagsCommands();
|
||||
}
|
||||
CommandlineLists.pushCurrent(commands);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue