Skip to content

Commit 6d1ceac

Browse files
authored
ENGCOM-5679: "Save Product" with the invalid data must scroll to the error message issue24241 #24242
2 parents f5bcf38 + d889538 commit 6d1ceac

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/Ui/view/base/web/js/form

1 file changed

+3
-0
lines changed

app/code/Magento/Ui/view/base/web/js/form/client.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ define([
6363
var $wrapper = $('<div/>').addClass(messagesClass).html(msg);
6464

6565
$('.page-main-actions', selectorPrefix).after($wrapper);
66+
$('html, body').animate({
67+
scrollTop: $('.page-main-actions', selectorPrefix).offset().top
68+
});
6669
}
6770
});
6871
});

0 commit comments

Comments
 (0)