Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Select loses its bound value when options load asynchronously

Chiusa
#3,928 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@MokiMeow ci sta già lavorando.

Dal 8/10/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, typescript
Ambito
frontend

Direzione di ricerca

Start by reproducing the report with a client-only <select value="b"> whose <option> children come from an async createMemo inside a Loading boundary, using the linked playground. Look at how the renderer applies the value binding to a select element, especially the immediate assignment and the microtask reapplication the reporter describes. Done means the bound option is selected once the async options arrive, and the case passes in both development and production builds.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

A <select value="b"> selects the first option (a) when its options come from an async createMemo, even inside a Loading boundary. Once loading finishes, both options exist, but the bound value is not selected.

Your Example Website or App

https://s.olid.uk/id/36b77c4b-f856-46fc-ba7f-9079194065f3

Steps to Reproduce the Bug or Issue
  1. Open the playground and wait for the 200ms load to finish.
  2. The dropdown shows a, although the JSX specifies value="b".
  3. Remove await delay(200) from the memo. The same example correctly selects b.
Expected behavior

When the options finish loading and the select is revealed, it should select b, matching its bound value.

Screenshots or Videos

No response

Platform
  • OS: Linux (WSL)
  • Browser: Chromium 153.0.8010.12
  • Solid: solid-js, @solidjs/web, and @solidjs/compiler 2.0.0-rc.14
Additional context

Reproduces in development and production, with client rendering only.

The select value is assigned immediately and again in a microtask, while there are no options. When the async options arrive later, the browser selects the first one and the value binding is not reapplied.

The repro does not require SSR, component wrappers, actions, stores, or styling.

Lingua principale
TypeScript
Stelle
36.1k
Fork
1.1k
Merge medio
9h 56m
PR unite (30g)
336

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di solidjs/solid

Tutte le issue di solidjs/solid

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.