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

@@ -209,7 +209,10 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
});
Grocy.FrontendHelpers.ValidateForm('shoppinglist-form');
Grocy.Components.ProductPicker.GetInputElement().focus();
setTimeout(function()
{
Grocy.Components.ProductPicker.GetInputElement().focus();
}, 250);
if (Grocy.EditMode === "edit")
{