Add reset workaround to prevent issues when showing different error messages in same validator

This commit is contained in:
Christoph Atteneder 2018-11-14 16:57:17 +01:00
parent a19e69a1a2
commit 491d3b0e5b
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B

View file

@ -71,6 +71,9 @@ public class InputTextField extends JFXTextField {
if (newValue.isValid) { if (newValue.isValid) {
resetValidation(); resetValidation();
} else { } else {
resetValidation();
validate();
jfxValidationWrapper.applyErrorMessage(newValue); jfxValidationWrapper.applyErrorMessage(newValue);
} }
validate(); validate();