Commit 19d6f8fb authored by Jacob Rockowitz's avatar Jacob Rockowitz Committed by Jacob Rockowitz
Browse files

Issue #3253167 by jrockowitz, New Zeal, paulocs: Webform clientside validation...

Issue #3253167 by jrockowitz, New Zeal, paulocs: Webform clientside validation IFE does not cater for select2
parent 1cda5c0e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -58,6 +58,13 @@
        $errorMessages.insertAfter($container);
      });

      // Move all select2 and chosen errors to appear after the parent container.
      $(this.currentForm).find('.webform-select2 ~ .select2, .webform-chosen ~ .chosen-container').each(function () {
        var $container = $(this);
        var $errorMessages = $container.prev('strong.error.form-item--error-message');
        $errorMessages.insertAfter($container);
      });

      // Move checkbox errors to appear as the last item in the
      // parent container.
      $(this.currentForm).find('.form-type-checkbox').each(function () {