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
No known key found for this signature in database
1 changed files with 2 additions and 4 deletions

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">