Fix spinbox not validating the second time an invalid value is entered

This commit is contained in:
David Rowe 2018-06-12 17:35:53 +12:00
parent 11178d80f7
commit 537665c22a

View file

@ -81,6 +81,7 @@ SpinBox {
}
valueFromText: function(text, locale) {
spinBox.value = 0; // Force valueChanged signal to be emitted so that validator fires.
return Number.fromLocaleString(locale, text)*factor;
}