Skip to content

Commit ba46794

Browse files
Merge forwardport of #11084 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/11084.patch (created by @rubenRP) based on commit(s): 1. 6e5c8f0 2. 6be8769 Fixed GitHub Issues in 2.3-develop branch: - #9920: stripped-min-length Validation via UI Component Fails with "special" characters (reported by @bap14)
2 parents 316c516 + ed5d239 commit ba46794

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Ui/view/base/web/js/lib/validation

1 file changed

+1
-1
lines changed

app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ define([
244244
],
245245
'stripped-min-length': [
246246
function (value, param) {
247-
return $(value).text().length >= param;
247+
return _.isUndefined(value) || value.length === 0 || utils.stripHtml(value).length >= param;
248248
},
249249
$.mage.__('Please enter at least {0} characters')
250250
],

0 commit comments

Comments
 (0)