Optimized form input field navigation delay

This commit is contained in:
Bernd Bestel
2025-01-31 15:35:34 +01:00
parent c8ac094bf4
commit a35db9f1d3
62 changed files with 99 additions and 92 deletions

View File

@@ -492,7 +492,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
setTimeout(function()
{
$('#display_amount').focus();
}, 500);
}, Grocy.FormFocusDelay);
if (productDetails.stock_amount == productDetails.stock_amount_opened || productDetails.product.enable_tare_weight_handling == 1 || productDetails.product.disable_open == 1)
{
@@ -660,7 +660,7 @@ if (GetUriParam("embedded") !== undefined)
setTimeout(function()
{
Grocy.Components.ProductPicker.GetInputElement().focus();
}, 500);
}, Grocy.FormFocusDelay);
$(document).on("change", "#scan-mode", function(e)
{