home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.11k stars 2.81k forks source link

Trailing Zeros Cannot Be Entered for Floating Point Numbers #22955

Open suaveolent opened 8 hours ago

suaveolent commented 8 hours ago

Checklist

Describe the issue you are experiencing

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

For example:

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

https://github.com/user-attachments/assets/4d7dd3b8-4e24-40ad-8237-5e5d2e32e69d

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