Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Select loses its bound value when options load asynchronously

Abierto
#3,928 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@MokiMeow ya está trabajando en esto.

Desde el 8/10/2026.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
36.1k
Forks
1.1k
Merge medio
11 h 25 min
PR fusionados (30 d)
345

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de solidjs/solid

Todos los issues de solidjs/solid

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.