Hello,
It seems that once the code for the built-in semanticUI form validation is placed in the page, the submit event is no longer recognized by Meteor. As soon as I remove the code, it starts catching the event again.
I also created a github issue in the atmospherejs SemanticUI-CSS repo but I was wondering if anyone here can help me.
Is there anything I can do to make the submit event work while using SemanticUI form validation?
I use Semantic UI extensively but I’ve opted to use Collection2 and Simple-Schema packages from Atmosphere for validation. I find their validation works quite well and is reactive too.
If you are using the semantic-ui package (instead of just semanticui-css), this post on stackoverflow explains that the form element has to be cleared, reset, and also the error class has to be removed from the element containing the form (.canAdd):
function resetForm() {
var candAdd = $('.candAdd');
candAdd.form('reset');
candAdd.form('clear');
// remove the error class so it wont show error msg ( semantic-ui bug ? )
candAdd.removeClass('error');
}