Skip to content

Commit d889538

Browse files
ENGCOM-5679: 'Save Product' with the invalid data must scroll to the error message issue24241 #24242
- Merge Pull Request #24242 from edenduong/magento2:2.3-bugfix/save_invalid_data_scroll_issue24241 - Merged commits: 1. 157e1cd
2 parents 8f911bb + 157e1cd commit d889538

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)