Skip to content

Commit

Permalink
GraniteUI validator: Use data-foundation-validation instead of data-v…
Browse files Browse the repository at this point in the history
…alidation HTML attribute (#74)
  • Loading branch information
stefanseifert authored Nov 28, 2024
1 parent 4073ce4 commit e421f67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<action type="fix" dev="sseifert" issue="72">
Dynamic Media with OpenAPI: Respect Image Dimension from SVG asset metadata.
</action>
<action type="fix" dev="sseifert" issue="74">
GraniteUI validator: Use data-foundation-validation instead of data-validation HTML attribute, the latter is deprecated.
</action>
</release>

<release version="2.2.2" date="2024-09-16">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

// predefined "responsiveWidths" pattern validator
foundationValidator.register('foundation.validation.validator', {
selector: '[data-validation="wcmio.handler.media.responsiveWidths"]',
selector: '[data-foundation-validation="wcmio.handler.media.responsiveWidths"]',
validate: function(el) {
var value = getValue(el);
var valid = value.length === 0 || pattern.responsiveWidths.test(value);
Expand Down

0 comments on commit e421f67

Please sign in to comment.