Fixed purchase/inventory embedded mode initial input focus handling

This commit is contained in:
Bernd Bestel
2020-11-14 11:53:35 +01:00
parent 1fbda392c2
commit bb985c09ba
2 changed files with 2 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ Grocy.FrontendHelpers.ValidateForm('purchase-form');
if (Grocy.Components.ProductPicker)
{
if (Grocy.Components.ProductPicker.InAnyFlow() === false)
if (Grocy.Components.ProductPicker.InAnyFlow() === false && GetUriParam("embedded") === undefined)
{
Grocy.Components.ProductPicker.GetInputElement().focus();
}