Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inputs Number und Range: onChange Value Type nicht konsistent #6345

Open
3 tasks
laske185 opened this issue Apr 23, 2024 · 0 comments
Open
3 tasks

Inputs Number und Range: onChange Value Type nicht konsistent #6345

laske185 opened this issue Apr 23, 2024 · 0 comments
Labels
v3 Here are issues that need to be resolved for version 3.

Comments

@laske185
Copy link
Contributor

laske185 commented Apr 23, 2024

KolInputRange emitted zur Zeit number, KolInputNumber emitted string.

Sollte dies auf einen einheitliches Type angepasst werden?

Gedanken zu number vs. string:

  • Der DOM Standard ist string, das ist also auch der Type mit dem Entwickler i.d.R. rechnen werden.
  • Mit string sind auch Eingaben wie '010' möglich: Kein Integer, aber immer noch eine Nummer. Mit number würde dies zu 10 konvertiert werden.

Todo

  • API bei kol-input-range umstellen auf String
  • Breaking Change dokumentieren (Liste für V3)
  • Event-Dokumentation in Readme anpassen, Link auf dieses Issue entfernen
@laske185 laske185 added the v3 Here are issues that need to be resolved for version 3. label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 Here are issues that need to be resolved for version 3.
Projects
Status: 📄 Ready
Development

No branches or pull requests

1 participant