mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-15 03:50:40 +00:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user