[number-field] Step property should not have default value #1224
Labels
refactor
Internal improvement
requires new major
This would be a breaking change
vaadin-number-field
Motivation
Currently,
<vaadin-number-field>
hasstep=1
by default. The default value has special functionality: it is used only for increment/decrement, but not for validation. This is quite weird and has caused some issues. See discussion in vaadin/vaadin-text-field#420 and vaadin/vaadin-text-field#421.Actually, the native
<input type="number">
validates asstep
would be1
, even when the property is not defined.We can choose to either keep the current functionality (not validating by step by default), or align with the native element and do validate. Either way, having a default property value makes no sense.
Note
Part of #3102
The text was updated successfully, but these errors were encountered: