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

Number field auto-removes decimals if step option is not set. #2306

texnixe opened this issue Nov 14, 2019 · 1 comment


Copy link

@texnixe texnixe commented Nov 14, 2019

Describe the bug
If you enter a decimal value into a number field that has no decimals defined, as soon as the field is no longer focused, the decimals are cut off without an further hint that there was something wrong with the data. Shouldn't the field validate the entered value?

To Reproduce
Steps to reproduce the behavior:

  1. Define a number field without the step option
  2. Go to the Panel and enter a number with decimals and save.
  3. See as when you leave the field, the decimals are removed without any explanation, but the save bar pops up again.

Expected behavior
Maybe the field should come up with a warning rather than popping up the save bar and auto-removing the decimals as the current behavior is somewhat confusing.

Kirby Version
Tested with Kirby 3.3.0.


This comment has been minimized.

Copy link

@bastianallgeier bastianallgeier commented Nov 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.