mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 03:40:10 +00:00
Optimized button click tooltip hide handling (fixes #2206)
This commit is contained in:
@@ -130,9 +130,7 @@ $(document).on('click', '.product-consume-button', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
// Remove the focus from the current button
|
||||
// to prevent that the tooltip stays until clicked anywhere else
|
||||
document.activeElement.blur();
|
||||
$(".tooltip").tooltip("hide");
|
||||
|
||||
Grocy.FrontendHelpers.BeginUiBusy();
|
||||
|
||||
@@ -185,9 +183,7 @@ $(document).on('click', '.product-open-button', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
// Remove the focus from the current button
|
||||
// to prevent that the tooltip stays until clicked anywhere else
|
||||
document.activeElement.blur();
|
||||
$(".tooltip").tooltip("hide");
|
||||
|
||||
Grocy.FrontendHelpers.BeginUiBusy();
|
||||
|
||||
|
Reference in New Issue
Block a user