mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-15 03:44:31 +08:00
fix(tags): selected tags not being highlighted in test result (@Leonabcd123) (#7312)
### Description Update `data-active-tag-ids` instead of `active-tag-ids`, extract updating part from if statement. Fixes the following bug: - Create a tag - Complete a test - Click on the edit tags button - Click on the newly created tag - Click on the edit tags button again - The tag won't be highlighted in yellow Co-authored-by: Jack <jack@monkeytype.com>
This commit is contained in:
parent
be4649c900
commit
d09969f1ec
1 changed files with 5 additions and 4 deletions
|
|
@ -1262,11 +1262,12 @@ export function updateTagsAfterEdit(
|
|||
|
||||
// $(`.pageTest #result .tags .bottom`).html(tagNames.join("<br>"));
|
||||
$(`.pageTest #result .tags .bottom`).append(html);
|
||||
$(`.pageTest #result .tags .top .editTagsButton`).attr(
|
||||
"active-tag-ids",
|
||||
tagIds.join(","),
|
||||
);
|
||||
}
|
||||
|
||||
$(`.pageTest #result .tags .top .editTagsButton`).attr(
|
||||
"data-active-tag-ids",
|
||||
tagIds.join(","),
|
||||
);
|
||||
}
|
||||
|
||||
$(".pageTest #result .chart .chartLegend button").on("click", (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue