Svelte does not support two-way-data-binding with custom elements when the property name is value
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- documentation
Línea de trabajo
Start with the README and review how it currently describes Svelte integration, then read the linked Svelte issue for the reported binding limitation. Done means the README clearly documents that two-way binding with a custom element whose property is named value does not work as expected, along with the relevant workaround or limitation.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hey,
I just read this blog post and saw this repository linked there. Nice to see this movement and progress for ui5 webcomponents.
Good job guys!
I tried to use ui5 webcomponents with svelte two years ago and stumpled on some points.
But all in all it works really nice!
I think probably you should mention some points in README, which are currently not supported.
Such as two way data binding on input-element is not working as expected. See: https://github.com/sveltejs/svelte/issues/4838
<script>
import "@ui5/webcomponents/dist/Button";
import "@ui5/webcomponents/dist/Input";
export let name = world;
</script>
<style>
main {
font-family: sans-serif;
text-align: center;
}
</style>
<main>
<h1>Hello {name}!</h1>
<ui5-button>Hello {name}</ui5-button>
<!-- databind implement by myself -->
<ui5-input value={name} on:input={(e) => name = e.target.value}></ui5-input>
<!-- svelte "native" two-way-databinding -->
<!-- comment this out to see the problem-->
<!--<ui5-input bind:value={name}></ui5-input>-->
</main>
- Lenguaje dominante
- Svelte
- Estrellas
- 28
- Forks
- 2
- 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 UI5/sample-webcomponents-svelte
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Todos los issues de UI5/sample-webcomponents-svelte
Issues similares
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug dap needs-assignee size/M
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
EffortlessMetrics/perl-lsp#10250 · 1 comentario ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
obra/superpowers#2763 ·
Los mantenedores suelen responder en 1 día
-
Codespaces user secrets guide describes logout behavior from older GitHub CLI versionsPosiblemente ocupada @Jostar2 la tomó hoy. Abiertotriage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
github/docs#47156 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:post effort:low enhancement P7 source:agent
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Los mantenedores suelen responder en 1 día