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

Trailing Zeros Cannot Be Entered for Floating Point Numbers #22955

Open
4 tasks done
suaveolent opened this issue Nov 22, 2024 · 1 comment
Open
4 tasks done

Trailing Zeros Cannot Be Entered for Floating Point Numbers #22955

suaveolent opened this issue Nov 22, 2024 · 1 comment
Labels
Bug Current Bug in UI - Extra Attention

Comments

@suaveolent
Copy link

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

When attempting to input floating-point numbers in Home Assistant, trailing zeros are not allowed directly.

For example:

  • The value 0.07 cannot be entered directly.
  • Instead, the user must first input 0.7 and then add a 0 before the 7 to achieve the desired value.
  • Similarly, numbers with more complex decimal structures, such as 0.1230123, cannot be entered directly.

See screen recording for effect. The trailing zero is automatically removed:

Screen.Recording.2024-11-16.at.13.14.37.mov

Describe the behavior you expected

Trailing zeros numbers should not be automatically cut while typing. Instead they can be trimmed when the focus of the input field is lost.

Steps to reproduce the issue

  1. Create e.g. automation with numeric value
  2. Try to input a number with a zero after the comma. e.g. 0.07

What version of Home Assistant Core has the issue?

core-2024.11.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Safari 17.6, Mozilla Firefox 132.0.2

Which operating system are you using to run this browser?

macOS 14.6.1, Windows 11

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

@zestysoft
Copy link

fwiw, you can paste the value in to get around the validator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Current Bug in UI - Extra Attention
Projects
None yet
Development

No branches or pull requests

3 participants