If widget fails validation during submit check, scroll it into view

This commit is contained in:
nathan 2022-09-22 09:20:50 -06:00
parent 8da8c14a00
commit 0424836ba8

View File

@ -1099,6 +1099,11 @@ export class etemplate2
{ {
(<Et2Tabs><unknown>tmpWidget).activateTab(invalid_widgets[0]); (<Et2Tabs><unknown>tmpWidget).activateTab(invalid_widgets[0]);
} }
// scroll the widget into view
if(typeof widget.scrollIntoView === 'function')
{
widget.scrollIntoView();
}
} }
else else
{ {