Skip to content

Commit 44b4f87

Browse files
authored
fix(menu/importieds): Accept multiple IEDs from same file in import IEDs. Closes openscd#897 (openscd#900)
1 parent 0f661d4 commit 44b4f87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/menu/ImportIEDs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,10 @@ export default class ImportingIedPlugin extends LitElement {
489489
}
490490

491491
render(): TemplateResult {
492-
return html`<input multiple @change=${(event: Event) =>
493-
this.loadIedFiles(
494-
event
495-
)} id="importied-plugin-input" accept=".sed,.scd,.ssd,.iid,.cid,.icd" type="file"></input>`;
492+
return html`<input multiple @change=${(event: Event) => {
493+
this.loadIedFiles(event);
494+
(<HTMLInputElement>event.target).value = '';
495+
}} id="importied-plugin-input" accept=".sed,.scd,.ssd,.iid,.cid,.icd" type="file"></input>`;
496496
}
497497

498498
static styles = css`

0 commit comments

Comments
 (0)