From 2d3074f91172c01f3e8c8584ec1e23f50d6e15f7 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Mon, 26 Oct 2026 09:06:47 +0900 Subject: [PATCH] =?UTF-8?q?fix(=EA=B0=80=EC=9D=B4=EB=93=9C):=20538=20?= =?UTF-8?q?=EC=B2=98=EC=9D=8C=20=EC=9E=90=EB=A6=AC=20=EC=9D=B4=EB=8F=99?= =?UTF-8?q?=EC=9D=84=20=EB=AA=A8=EB=8B=AC=20=EB=B6=99=EC=9D=80=20=EC=A7=81?= =?UTF-8?q?=ED=9B=84=EB=A1=9C=20=C2=B7=20=EA=B7=B8=EB=A6=BC=20=EA=B3=A0?= =?UTF-8?q?=EB=A5=B4=EA=B8=B0=20=EC=9E=85=EB=A0=A5=EC=9D=84=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=AC=20=EC=95=88=EC=97=90=20=EB=91=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 숨은 탭(ORCA)에서 requestAnimationFrame 이 안 돌아 [?] 가 지금 페이지로 안 감 → openModal 뒤 바로 이동 - 그림 고르기 입력을 글 영역 안(hidden)에 붙임 — 화면 검증 도구가 파일을 넣을 수 있게 Co-Authored-By: Claude Opus 5.5 --- ui_template/ui_template_help.ts | 6 ++++-- ui_template/ui_template_help_edit.ts | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ui_template/ui_template_help.ts b/ui_template/ui_template_help.ts index 12e58697f..9ae0d260f 100644 --- a/ui_template/ui_template_help.ts +++ b/ui_template/ui_template_help.ts @@ -241,6 +241,7 @@ async function openHelp(): Promise { const pages = GROUPS.flatMap((g) => guide.pages.filter((p) => p.page.startsWith(g.prefix))); const start = firstAnchor(pages); let flush = async (): Promise => true; + let jump = (_anchor: string): void => undefined; openModal({ title: TEXT.title, closeLabel: TEXT.close, @@ -312,10 +313,11 @@ async function openHelp(): Promise { renderHelpItem(page, item, true), ).flush; body.append(el("div", { className: "ui-help__grid", children: [toc, article] })); - // 모달이 붙은 뒤 이동 — mount 는 붙기 전 - requestAnimationFrame(() => goTo(start)); + jump = goTo; }, }); + // 모달이 붙은 뒤 이동 — mount 는 붙기 전 · 숨은 탭에서도 되게 rAF 안 씀 + jump(start); } export function createHelpButton(): HTMLButtonElement { diff --git a/ui_template/ui_template_help_edit.ts b/ui_template/ui_template_help_edit.ts index 8746c3515..c6d1c0605 100644 --- a/ui_template/ui_template_help_edit.ts +++ b/ui_template/ui_template_help_edit.ts @@ -120,8 +120,9 @@ export function attachHelpEditing( // 그림 고르기 — 하나를 돌려 씀 · 고른 뒤 값 비움(같은 파일 다시 골라도 change) const picker = el("input", { - attrs: { type: "file", accept: "image/png,image/jpeg,image/webp" }, + attrs: { type: "file", accept: "image/png,image/jpeg,image/webp", hidden: "" }, }); + article.append(picker); let pickFor: { section: HTMLElement; name: string } | null = null; picker.addEventListener("change", async () => { const file = picker.files?.[0];