Dcc.input number input doesn't allow typing negative sign "-" before numbers

Hi,

When I set a dcc.input number input and tried to type in negative sign “-” then numbers, it doesn’t allow that.

E.g. I attempted to type in -20, but right after I typed in “-” it changes to 0, and any numbers typed in following that would be positive.

Did anyone come across that before?

Yeah it seems like there’s some over-zealous validation going on. It turns out you can get the Input component to accept negative values, but only by entering a number that doesn’t start with 0, and then moving the cursor to the start of the field and entering -. Users really should be able to start by entering a - symbol.

I’ve created an issue for discussion of this over on the DCC repo: https://github.com/plotly/dash-core-components/issues/455