chore: update heatmap click handler

This commit is contained in:
Steven
2023-12-22 20:07:17 +08:00
parent 29b540ade3
commit feefaabce9
8 changed files with 25 additions and 64 deletions

View File

@ -202,7 +202,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
const handleMemoContentClick = async (e: React.MouseEvent) => {
const targetEl = e.target as HTMLElement;
if (targetEl.className === "tag-span") {
if (targetEl.classList.contains("tag-container")) {
const tagName = targetEl.innerText.slice(1);
const currTagQuery = filterStore.getState().tag;
if (currTagQuery === tagName) {