mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
More initial form field focus optimizations
This commit is contained in:
@@ -518,7 +518,10 @@ if (GetUriParam("embedded") !== undefined)
|
||||
if (typeof locationId === 'undefined')
|
||||
{
|
||||
Grocy.Components.ProductPicker.GetPicker().trigger('change');
|
||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
||||
setTimeout(function()
|
||||
{
|
||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
||||
}, 500);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -532,4 +535,7 @@ if (GetUriParam("embedded") !== undefined)
|
||||
}
|
||||
|
||||
// Default input field
|
||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
||||
setTimeout(function()
|
||||
{
|
||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
||||
}, 500);
|
||||
|
Reference in New Issue
Block a user