Blazor – input type=”number” won’t let me insert negative values (but it does when debugging)
I’m creating a generic form project, the kind of type where you insert a model and the form is generated for you. In order for this to work I now work on a generic input component, which will render specefic attributes for a type (“number”, “string”…).
Only problem – I can’t insert negative values when I’m handling a model with an int (input type=”number”).
When I insert a negetive value and unfocus the input box, the entered value litterally dissapear and I see the followig messege in the browser console (tried to insert -1) :