Commit 8c660043 authored by Bojan Živanović's avatar Bojan Živanović
Browse files

Revert "Issue #3025983 by Marios Anagnostopoulos: Add a pattern attribute to the postal code field"

This reverts commit d3d1023a.
parent 669c21af
Loading
Loading
Loading
Loading
+0 −4
Changes for src/Element/Address.php: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -275,10 +275,6 @@ class Address extends FormElement {
    if (isset($element['address_line2'])) {
      $element['address_line2']['#title_display'] = 'invisible';
    }
    // Allow the postal code pattern to be used for client side validation.
    if (isset($element['postal_code'])) {
      $element['postal_code']['#attributes']['pattern'] = $address_format->getPostalCodePattern();
    }
    // Add predefined options to the created subdivision elements.
    $element = static::processSubdivisionElements($element, $value, $address_format);