Skip to content

Commit ed5d239

Browse files
⏫ 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)
1 parent 8e77e2f commit ed5d239

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

+1-1
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)