node-red/node-red-dashboard

Numeric Node - Manual Entry Fail with Min / Max Settings

innoagg opened this issue · 0 comments

Issue:

When manually editing a numeric node in a dashboard with min / max settings the limits are enforced on every keystroke making it very frustrating and in some cases impossible to edit values. On large min/max ranges the up/down buttons are not practical.

What are the steps to reproduce?

Setup a numeric node with a min=10 and max=100. Set the value to 20. In the dashboard view try to type "50" into the entry box. The first keystroke of "5" will reset the value box to 10 as will the second keystroke of "0".

The only way to do this is to highlight a portion of the entry box and change that, but some browsers (like mobile or safari) make it nearly impossible to select and change just a portion of the data entry box text so that the min/max limits are not triggered.

What do you expect to happen?

Would prefer that the numeric node would not validate data entry on every keystroke but rather wait until focus is lost. At that point, if the value is outside the min/max the value would revert accordingly and pass the msg on to the output.

Please tell us about your environment:

  • Node-RED-Dashboard version: 3.6.2
  • Node-RED version: 3.1.0
  • node.js version: v20.8.1
  • npm version: 10.1.0
  • Platform/OS: Ubuntu 2204
  • Browser: Chrome