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

@@ -91,7 +91,10 @@ if (Grocy.EditMode == "edit")
}
Grocy.FrontendHelpers.ValidateForm('barcode-form');
$('#barcode').focus();
setTimeout(function()
{
$('#barcode').focus();
}, 250);
RefreshLocaleNumberInput();
Grocy.Components.UserfieldsForm.Load()