fix(ui): address review — use .value as sole selection driver

Remove ?selected and selected attributes from <option> elements
to avoid conflicting with .value binding on the <select>.
This commit is contained in:
rixau
2026-02-12 15:54:30 -05:00
committed by Val Alexander
parent 5acbadcd9f
commit bdde4e36c2

View File

@@ -82,13 +82,11 @@ export function renderDebug(props: DebugProps) {
${
!props.callMethod
? html`
<option value="" disabled selected>Select a method…</option>
<option value="" disabled>Select a method…</option>
`
: nothing
}
${props.methods.map(
(m) => html`<option value=${m} ?selected=${m === props.callMethod}>${m}</option>`,
)}
${props.methods.map((m) => html`<option value=${m}>${m}</option>`)}
</select>
</label>
<label class="field">