fix(view): enable the import apply button after the sample names are filled
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
12239c6652
commit
33d5edef35
1 file changed
+2
@@ -1176,6 +1176,8 @@ const SAMPLE_PROJECT = { name: '운곡교P1', bridge: '운곡교' } as const;
|
||||
function fillSampleNames(): void {
|
||||
$<HTMLInputElement>('project-name').value = SAMPLE_PROJECT.name;
|
||||
$<HTMLInputElement>('bridge-name').value = SAMPLE_PROJECT.bridge;
|
||||
// Setting .value does not fire 'input', so the apply button must be refreshed here.
|
||||
updateApply();
|
||||
}
|
||||
|
||||
$<HTMLButtonElement>('pick-sample').addEventListener('click', async () => {
|
||||
|
||||
Reference in new issue
Block a user