Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-beeclever committed Sep 29, 2024
1 parent 3911b5d commit 856e133
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/text-field.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
id="{{ block.id }}"
name="{{ block.settings.name }}"
class="text-field"
{% if block.settings.pattern %}pattern="{{ block.settings.pattern }}"{% endif %}
{% if block.settings.placeholder %}placeholder="{{ block.settings.placeholder }}"{% endif %}
{% if block.settings.max_length %}maxlength="{{ block.settings.max_length }}"{% endif %}
{% if block.settings.pattern != blank %}pattern="{{ block.settings.pattern }}"{% endif %}
{% if block.settings.placeholder != blank %}placeholder="{{ block.settings.placeholder }}"{% endif %}
{% if block.settings.max_length != blank %}maxlength="{{ block.settings.max_length }}"{% endif %}
{% if block.settings.required %} required {% endif %}
{{ block.shopify_attributes }}
{% endcapture %}
Expand Down

0 comments on commit 856e133

Please sign in to comment.