mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-03-14 11:42:32 +00:00
Fix/workaround for name selection bug when publishing data
This commit is contained in:
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user