mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Fixed shopping list item form initial input field focus
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user