diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts index f5817fa7f..e06af11ed 100644 --- a/app/src/asset/anno.ts +++ b/app/src/asset/anno.ts @@ -125,7 +125,7 @@ export const initAnno = (file: string, element: HTMLElement, annoId: string, pdf let target = event.target as HTMLElement; while (target && !target.classList.contains("pdf__outer")) { const type = target.getAttribute("data-type"); - if (target.classList.contains("b3-color__square")) { + if (target.classList.contains("color__square")) { const color = target.style.backgroundColor; if (rectElement) { const config = getConfig(pdf); diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts index e6faf92ec..6df1d2a56 100644 --- a/app/src/asset/index.ts +++ b/app/src/asset/index.ts @@ -396,13 +396,13 @@ export class Asset extends Model {