mirror of
https://github.com/grocy/grocy.git
synced 2025-08-07 23:09:48 +00:00
Fixed shopping list item form initial input field focus
This commit is contained in:
parent
36b8309943
commit
59277c898a
@ -214,10 +214,6 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
|||||||
});
|
});
|
||||||
|
|
||||||
Grocy.FrontendHelpers.ValidateForm('shoppinglist-form');
|
Grocy.FrontendHelpers.ValidateForm('shoppinglist-form');
|
||||||
setTimeout(function()
|
|
||||||
{
|
|
||||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
|
||||||
}, 250);
|
|
||||||
|
|
||||||
if (Grocy.EditMode === "edit")
|
if (Grocy.EditMode === "edit")
|
||||||
{
|
{
|
||||||
@ -278,7 +274,10 @@ if (GetUriParam("embedded") !== undefined)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
setTimeout(function()
|
||||||
|
{
|
||||||
|
Grocy.Components.ProductPicker.GetInputElement().focus();
|
||||||
|
}, 250);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user