We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0faf45d commit 80c3a5dCopy full SHA for 80c3a5d
lib/web/mage/validation.js
@@ -1875,8 +1875,7 @@ define([
1875
*/
1876
errorPlacement: function (error, element) {
1877
var errorPlacement = element,
1878
- fieldWrapper,messageBox;
1879
-
+ fieldWrapper;
1880
// logic for date-picker error placement
1881
if (element.hasClass('_has-datepicker')) {
1882
errorPlacement = element.siblings('button');
@@ -1904,12 +1903,6 @@ define([
1904
1903
if (element.next().find('.tooltip').length) {
1905
errorPlacement = element.next();
1906
}
1907
1908
- if (element.attr('data-errors-msg-box')) {
1909
- messageBox = $(element.attr('data-errors-msg-box'));
1910
- messageBox.html(error);
1911
- return;
1912
- }
1913
errorPlacement.after(error);
1914
1915
},
0 commit comments