Fix/workaround for name selection bug when publishing data

This commit is contained in:
CalDescent 2022-03-03 09:59:20 +00:00
parent 3bf5b4c35a
commit d1621e7660

@ -102,6 +102,7 @@ class PublishData extends LitElement {
<!-- TODO: adapt this dropdown to list all names on the account. Right now it's hardcoded to a single name --> <!-- TODO: adapt this dropdown to list all names on the account. Right now it's hardcoded to a single name -->
<p style="display: ${this.showName ? 'block' : 'none'}"> <p style="display: ${this.showName ? 'block' : 'none'}">
<mwc-select id="registeredName" label="Select Name" index="0" @selected=${(e) => this.selectName(e)} style="min-width: 130px; max-width:100%; width:100%;"> <mwc-select id="registeredName" label="Select Name" index="0" @selected=${(e) => this.selectName(e)} style="min-width: 130px; max-width:100%; width:100%;">
<mwc-list-item selected value=""></mwc-list-item>
<mwc-list-item value="${this.registeredName}">${this.registeredName}</mwc-list-item> <mwc-list-item value="${this.registeredName}">${this.registeredName}</mwc-list-item>
</mwc-select> </mwc-select>
</p> </p>
@ -497,7 +498,7 @@ class PublishData extends LitElement {
} }
selectName(e) { selectName(e) {
const name = this.shadowRoot.getElementById('registeredName').innerHTML const name = this.shadowRoot.getElementById('registeredName').value
this.selectedName = name this.selectedName = name
} }