Skip to content

Commit 1d31358

Browse files
author
Rob Tjalma
authored
Merge pull request openscd#833 from openscd/104-fix-wizard-issue
fix(104/address): Input fields are reset when using multiple time
2 parents 41a0a4b + cfd34bb commit 1d31358

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/editors/protocol104/wizards/address.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { html, TemplateResult } from 'lit-element';
22
import { get, translate } from 'lit-translate';
3+
import { live } from 'lit-html/directives/live';
34

45
import '@material/mwc-list/mwc-list-item';
56
import '@material/mwc-select';
@@ -135,14 +136,14 @@ export function editAddressWizard(
135136
</mwc-textarea>`,
136137
html`<wizard-textfield
137138
label="casdu"
138-
.maybeValue="${addressElement.getAttribute('casdu')}"
139+
.maybeValue="${live(addressElement.getAttribute('casdu') ?? '')}"
139140
helper="${translate('protocol104.wizard.casduHelper')}"
140141
required
141142
>
142143
</wizard-textfield>`,
143144
html`<wizard-textfield
144145
label="ioa"
145-
.maybeValue="${addressElement.getAttribute('ioa')}"
146+
.maybeValue="${live(addressElement.getAttribute('ioa') ?? '')}"
146147
helper="${translate('protocol104.wizard.ioaHelper')}"
147148
required
148149
>

0 commit comments

Comments
 (0)