Fixed modal dialogs / iframes initial input focus (fixes #1665)

This commit is contained in:
Bernd Bestel
2021-11-08 21:59:02 +01:00
parent 29371163ad
commit 286351b6d2
10 changed files with 40 additions and 10 deletions

View File

@@ -95,7 +95,10 @@ $("#show_in_sidebar_menu").on("click", function()
}
});
$('#name').focus();
setTimeout(function()
{
$('#name').focus();
}, 250);
Grocy.FrontendHelpers.ValidateForm('userentity-form');
// Click twice to trigger on-click but not change the actual checked state