This time around, I am implementing Semantic-UI with React.
In the past, I have successfully utilized Semantic-UI's form and form validation features in various projects without encountering any issues. However, a new problem has arisen, which I will address below.
Previously, when setting the on
property to change
for Semantic-UI's form validation, inline error messages would only appear if changes were made to the field being validated. But now, it seems that editing one field may trigger validation for all fields, displaying multiple inline errors for empty or incorrectly filled fields. This behavior is not ideal, and I am seeking a solution to prevent this from happening.
What could be causing this unexpected behavior? and how can it be avoided?
I have configured my form as usual...
Here is an example:
$('.ui.form.inputform')
.form({
on: 'change',
inline:true,
fields: {
// Form field rules listed here...
},
});