Input components do not use `value=""` when the form data has a value
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start by reproducing the issue with a TextInput whose value is set to an empty string while the form data contains a value, then compare the result with Phoenix.HTML.Form behavior. Trace the Surface input component path and add coverage showing that the rendered input includes value=""; done means the component matches the expected form behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
How to reproduce it
- Have some data in the field being rendered
<TextInput value="" />
The rendered does not have value="" but the value from the form data / changeset.
The functions in Phoenix.HTML.Form do not show this behaviour.
The behavior you expected
Expected the components to behave like Phoenix.HTML.Form.
Your Environment
Surface: v0.7.0
LiveView: v0.17.6
Elixir: v1.13.0
Edited because HTMLish content needs to be fenced, otherwise <TextInput... becomes invisible ;)
- Lenguaje dominante
- Elixir
- Estrellas
- 2.1k
- Forks
- 146
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de surface-ui/surface
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
surface-ui/surface#634 · 1 reacción ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
surface-ui/surface#770 ·
-
Website is downAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
surface-ui/surface#768 · 4 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
surface-ui/surface#762 · 2 comentarios · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
surface-ui/surface#759 · 1 reacción ·
Todos los issues de surface-ui/surface
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
ci-cd
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
carverauto/serviceradar#5648 ·
Los mantenedores suelen responder en 1 día
-
Bug Elixir Waiting for: Product Owner
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
getsentry/sentry-elixir#1242 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
open-telemetry/opentelemetry-erlang-contrib#846 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100