when you use the module WithInlineErrors to validate the form, every html-element with a css-class "error" is treated as an error. Even if the element is not related to the form.
the problem can be found in the file "with_inline_errors.rb":
all('.error').map do |container|
the solution is that the check for error-elements has to be within the form scope.
when you use the module WithInlineErrors to validate the form, every html-element with a css-class "error" is treated as an error. Even if the element is not related to the form.
the problem can be found in the file "with_inline_errors.rb":
the solution is that the check for error-elements has to be within the form scope.