We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa69aa5 commit 64f9c6dCopy full SHA for 64f9c6d
lib/web/mage/validation.js
@@ -845,11 +845,13 @@
845
result = true;
846
range = param;
847
848
- if (range) {
+ if (typeof range === 'string') {
849
m = dataAttrRange.exec(range);
850
851
if (m) {
852
result = result && $.mage.isBetween(numValue, m[1], m[2]);
853
+ } else {
854
+ result = false;
855
}
856
} else if (elm && elm.className) {
857
classes = elm.className.split(' ');
@@ -896,7 +898,7 @@
896
898
897
899
900
901
902
903
904
0 commit comments