From 33d5edef357d7484275b41be88fc6a7a0cc1b624 Mon Sep 17 00:00:00 2001 From: ypshim Date: Thu, 22 Oct 2026 11:47:23 +0900 Subject: [PATCH] fix(view): enable the import apply button after the sample names are filled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Setting the project name programmatically does not fire 'input', so the apply button stayed disabled after 샘플 P1 사용 even with P1 checked. The button is now refreshed after the names are filled. Co-Authored-By: Claude Haiku 5.5 --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index db631a3..e3722b4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1176,6 +1176,8 @@ const SAMPLE_PROJECT = { name: '운곡교P1', bridge: '운곡교' } as const; function fillSampleNames(): void { $('project-name').value = SAMPLE_PROJECT.name; $('bridge-name').value = SAMPLE_PROJECT.bridge; + // Setting .value does not fire 'input', so the apply button must be refreshed here. + updateApply(); } $('pick-sample').addEventListener('click', async () => {